File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 11#include " catch.hpp"
22#include " function_ref.hpp"
33
4- void foo (){}
5- struct bar {
6- void baz (){}
4+ void foo () {}
5+ struct bar
6+ {
7+ void baz () {}
78};
89
9- TEST_CASE (" Constructors" , " [constructors]" ) {
10- tl::function_ref<void (void )> fr1 = []{};
10+ TEST_CASE (" Constructors" , " [constructors]" )
11+ {
12+ tl::function_ref<void (void )> fr1 = [] {};
1113 tl::function_ref<void (void )> fr2 = foo;
1214 tl::function_ref<void (bar)> fr3 = &bar::baz;
15+
16+ // Silence warnings
17+ (void )fr1;
18+ (void )fr2;
19+ (void )fr3;
1320}
Original file line number Diff line number Diff line change 22#include " function_ref.hpp"
33
44TEST_CASE (" Issue #2" ) {
5- const auto lam = [](int x ) {};
5+ const auto lam = [](int ) {};
66 tl::function_ref<void (int )> ref = lam;
7+ (void )ref;
78}
You can’t perform that action at this time.
0 commit comments