diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 279a710..05bdc14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ on: env: UBSAN_OPTIONS: print_stacktrace=1 + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true jobs: posix: @@ -58,7 +59,7 @@ jobs: address-model: 32,64 - toolset: gcc-11 cxxstd: "03,11,14,17,20" - os: ubuntu-20.04 + os: ubuntu-22.04 install: g++-11-multilib address-model: 32,64 - toolset: gcc-12 diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d5a858..976738b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,7 @@ target_link_libraries(boost_optional Boost::throw_exception Boost::type_traits ) +target_compile_features(boost_optional INTERFACE cxx_std_11) if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index de84f2e..e17fc3b 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -2,6 +2,7 @@ # # Copyright (C) 2003, Fernando Luis Cacciola Carballal. # Copyright (C) 2014 - 2017 Andrzej Krzemienski +# Copyright (C) 2024 Alexander Grund # # Use, modification, and distribution is subject to the Boost Software # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at @@ -13,8 +14,24 @@ # akrzemi1@gmail.com # +import config : requires ; import testing ; +project + : requirements + [ requires + cxx11_decltype + cxx11_defaulted_functions + cxx11_defaulted_moves + cxx11_deleted_functions + cxx11_explicit_conversion_operators + cxx11_noexcept + cxx11_rvalue_references + cxx11_variadic_templates + ] + ; + + run optional_test.cpp ; run optional_test_assign.cpp ; run optional_test_swap.cpp ;