diff --git a/.drone.jsonnet b/.drone.jsonnet index 10bfdf2b..6569f585 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -6,7 +6,7 @@ local library = "unordered"; local triggers = { - branch: [ "master", "develop", "feature/*" ] + branch: [ "master", "develop", "feature/*", "bugfix/*" ] }; local ubsan = { UBSAN: '1', UBSAN_OPTIONS: 'print_stacktrace=1' }; diff --git a/test/unordered/erase_if.cpp b/test/unordered/erase_if.cpp index de3f5411..fcea06fa 100644 --- a/test/unordered/erase_if.cpp +++ b/test/unordered/erase_if.cpp @@ -1,4 +1,4 @@ -// Copyright 2021 Christian Mazakas. +// Copyright 2021-2022 Christian Mazakas. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -11,9 +11,10 @@ #include "../helpers/test.hpp" +#include #include -#if BOOST_CXX_VERSION >= 201103L +#if !defined(BOOST_NO_CXX11_REF_QUALIFIERS) #define UNORDERED_LVALUE_QUAL & #else #define UNORDERED_LVALUE_QUAL diff --git a/test/unordered/scoped_allocator.cpp b/test/unordered/scoped_allocator.cpp index 08a9397f..a8e02c8b 100644 --- a/test/unordered/scoped_allocator.cpp +++ b/test/unordered/scoped_allocator.cpp @@ -1,12 +1,13 @@ -// Copyright 2021 Christian Mazakas. +// Copyright 2021-2022 Christian Mazakas. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include #include +#include -#if BOOST_CXX_VERSION <= 199711L +#if BOOST_CXX_VERSION <= 199711L || BOOST_WORKAROUND(BOOST_GCC_VERSION, < 40800) BOOST_PRAGMA_MESSAGE( "scoped allocator adaptor tests only work under C++11 and above")