From 920ee20982e751376e99e782515831acf0cebefd Mon Sep 17 00:00:00 2001 From: Adam Mitz Date: Thu, 4 Nov 2021 17:22:01 -0500 Subject: Updated ACE tests for /std:c++17 --- ACE/tests/Compiler_Features_09_Test.cpp | 2 ++ ACE/tests/Compiler_Features_10_Test.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ACE/tests/Compiler_Features_09_Test.cpp b/ACE/tests/Compiler_Features_09_Test.cpp index eb38413cd6e..3918f865983 100644 --- a/ACE/tests/Compiler_Features_09_Test.cpp +++ b/ACE/tests/Compiler_Features_09_Test.cpp @@ -62,6 +62,7 @@ run_main (int, ACE_TCHAR *[]) // failure int status = 0; +#ifndef ACE_HAS_CPP17 // There is no auto_ptr in C++17 // ... this works with the ACE version of auto_ptr (well, the // namespace is broken, but you get the idea) ... std::auto_ptr x(new Base); @@ -102,6 +103,7 @@ run_main (int, ACE_TCHAR *[]) )); } +#endif ACE_END_TEST; return status; } diff --git a/ACE/tests/Compiler_Features_10_Test.cpp b/ACE/tests/Compiler_Features_10_Test.cpp index 6882b316315..d4ca21624e0 100644 --- a/ACE/tests/Compiler_Features_10_Test.cpp +++ b/ACE/tests/Compiler_Features_10_Test.cpp @@ -184,7 +184,11 @@ run_main (int, ACE_TCHAR *[]) { // ... start the test fresh ... reset_counts(); +#ifdef ACE_HAS_CPP17 + const auto b = std::make_unique(); +#else std::auto_ptr b(new Aggregate); +#endif never_reached(__FILE__, __LINE__); } catch(...) -- cgit v1.2.1