Refactoring: C++11 style DISABLE_ bionic marcos

Enable the -std=gnu++11 flag for libstdc++ static and
  dynamic libs.

  ScopeGuard uses DISABLE_ macros instead of '= delete';

(cherry picked from commit d9ff722661)

Change-Id: If2573d080770e18b36b56106f2369f7bb682cd3c
This commit is contained in:
Dmitriy Ivanov
2014-09-08 16:22:22 -07:00
parent 61c4147fa8
commit ef1306d777
7 changed files with 26 additions and 24 deletions

View File

@@ -869,7 +869,7 @@ TEST(pthread, pthread_attr_getstack__main_thread) {
#endif
EXPECT_EQ(rl.rlim_cur, stack_size);
auto guard = create_scope_guard([&rl, original_rlim_cur]() {
auto guard = make_scope_guard([&rl, original_rlim_cur]() {
rl.rlim_cur = original_rlim_cur;
ASSERT_EQ(0, setrlimit(RLIMIT_STACK, &rl));
});