From dbc1d4e7b8dcddbfeaf227ecdd2f09dd017f266d Mon Sep 17 00:00:00 2001 From: Timothy Simpson Date: Mon, 3 Oct 2022 14:52:43 -0500 Subject: For llvm's libcxx, C++17 or greater implies lack of std::auto_ptr unless defines are set --- .github/workflows/macosx.yml | 4 ++-- ACE/ace/config-macosx-leopard.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macosx.yml b/.github/workflows/macosx.yml index d74e4f83420..10fefd443ef 100644 --- a/.github/workflows/macosx.yml +++ b/.github/workflows/macosx.yml @@ -16,8 +16,8 @@ jobs: strategy: fail-fast: false matrix: - cxxstd: ["03", "11"] - os: [macos-10.15, macos-11.0] + cxxstd: ["03", "11", "17"] + os: [macos-10.15, macos-11, macos-12] include: - platform_file: include $(ACE_ROOT)/include/makeinclude/platform_macosx.GNU runs-on: ${{ matrix.os }} diff --git a/ACE/ace/config-macosx-leopard.h b/ACE/ace/config-macosx-leopard.h index 23d9dea5ddd..f86314bda3a 100644 --- a/ACE/ace/config-macosx-leopard.h +++ b/ACE/ace/config-macosx-leopard.h @@ -211,6 +211,10 @@ #endif #endif +#if __cplusplus >= 201703L && !defined (_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR) +# define ACE_LACKS_AUTO_PTR +#endif + // dlcompat package (not part of base Darwin) is needed for dlopen(). // You may download directly from sourceforge and install or use fink // Fink installer puts libraries in /sw/lib and headers in /sw/include -- cgit v1.2.1