Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
393db249
"vscode:/vscode.git/clone" did not exist on "16da76c4b4b72cf8adcc8cc1b7d8e88757e48978"
Commit
393db249
authored
Sep 06, 2020
by
Davis King
Browse files
switch this to C++11 code
parent
5bcbe617
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dlib/test/metaprogramming.cpp
dlib/test/metaprogramming.cpp
+2
-1
No files found.
dlib/test/metaprogramming.cpp
View file @
393db249
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment