mirror of
https://github.com/boostorg/scope_exit.git
synced 2026-01-23 18:12:09 +00:00
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:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user