"git@developer.sourcefind.cn:OpenDAS/deepspeed.git" did not exist on "b068e7018df6f205946f6cf4a25e2a1e8621dd12"
Commit 393db249 authored by Davis King's avatar Davis King
Browse files

switch this to C++11 code

parent 5bcbe617
......@@ -98,7 +98,8 @@ namespace
// make sure stateful lambdas are modified when called
value = 0;
auto stateful = [&value, i = value]() mutable { ++i; value = i; };
int i = 0;
auto stateful = [&value, i]() mutable { ++i; value = i; };
DLIB_TEST(call_if_valid(stateful));
DLIB_TEST(value == 1);
DLIB_TEST(call_if_valid(stateful));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment