Updated ScopeExit "world" tests making person a struct instead of a class.

Added a code comment to Utility/IdentityType tmp_assert test.

[SVN r77071]
This commit is contained in:
Lorenzo Caminiti
2012-02-18 19:29:35 +00:00
parent 40c505750e
commit c073d753cc
12 changed files with 118 additions and 119 deletions

View File

@@ -34,7 +34,7 @@ void world::add_person(person const& a_person) {
bool commit = false;
persons_.push_back(a_person);
scope_exit on_exit1([&commit, &persons_]() { // Use C++11 lambda.
scope_exit on_exit1([&commit, &persons_](void) { // Use C++11 lambda.
if(!commit) persons_.pop_back();
});