Skip to content

Commit bdd2d76

Browse files
committed
Universal reference requires function pointer.
1 parent 27ab5c9 commit bdd2d76

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/SignalTest.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ TYPED_TEST_P(SignalTest, FunctionBind2)
300300
auto a = MyDomain::MakeVar(1);
301301
auto b = MyDomain::MakeVar(1);
302302

303-
auto c = ((a+b), (a+100)) ->* myfunc;
304-
auto d = c ->* myfunc2;
305-
auto e = (d,d) ->* myfunc3;
303+
auto c = ((a+b), (a+100)) ->* &myfunc;
304+
auto d = c ->* &myfunc2;
305+
auto e = (d,d) ->* &myfunc3;
306306
auto f = -e + 100;
307307

308308
ASSERT_EQ(c(),103);

0 commit comments

Comments
 (0)