diff --git a/test/test_delegate.cpp b/test/test_delegate.cpp index 5ec1af4f..3baae2e4 100644 --- a/test/test_delegate.cpp +++ b/test/test_delegate.cpp @@ -676,7 +676,8 @@ namespace { etl::delegate d; - d.set([](int i, int j) { function_called = FunctionCalled::Lambda_Called; parameter_correct = (i == VALUE1) && (j == VALUE2); return i + j + 6; }); + d.set(+[](int i, int j) + { function_called = FunctionCalled::Lambda_Called; parameter_correct = (i == VALUE1) && (j == VALUE2); return i + j + 6; }); int result = d(VALUE1, VALUE2);