Switch lambda syntax over to [](){} format, to line up with C++11.

This commit is contained in:
Jonathan Turner
2011-09-24 13:31:24 -06:00
parent 784ca41270
commit 3765c23598
15 changed files with 23 additions and 19 deletions

View File

@@ -67,10 +67,10 @@ auto group = group_guard.get_contained_functions();
assert_equal(true, group[0].has_guard())
assert_equal(false, group[1].has_guard())
assert_throws("Function does not have a guard", fun() { group[0].get_guard(); } );
assert_throws("Function does not have a guard", fun() { without_guard.get_guard(); } );
assert_throws("Function does not have a guard", []() { group[0].get_guard(); } );
assert_throws("Function does not have a guard", []() { without_guard.get_guard(); } );
auto guard = with_guard.get_guard();
assert_equal(false, guard.has_guard());
assert_throws("Function does not have a guard", fun() { guard.get_guard(); } );
assert_throws("Function does not have a guard", []() { guard.get_guard(); } );