mirror of
https://github.com/boostorg/variant2.git
synced 2025-07-30 12:17:16 +02:00
Sync from upstream.
This commit is contained in:
@ -99,7 +99,7 @@ local windows_pipeline(name, image, environment, arch = "amd64") =
|
|||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
"Linux 16.04 GCC 4.8 32/64",
|
"Linux 16.04 GCC 4.8 32/64",
|
||||||
"cppalliance/droneubuntu1604:1",
|
"cppalliance/droneubuntu1604:1",
|
||||||
{ TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '11', ADDRMD: '32,64' },
|
{ TOOLSET: 'gcc', COMPILER: 'g++-4.8', CXXSTD: '11', ADDRMD: '32,64' },
|
||||||
"g++-4.8-multilib",
|
"g++-4.8-multilib",
|
||||||
),
|
),
|
||||||
|
|
||||||
@ -177,44 +177,37 @@ local windows_pipeline(name, image, environment, arch = "amd64") =
|
|||||||
),
|
),
|
||||||
|
|
||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
"Linux 23.04 GCC 13 32 ASAN",
|
"Linux 23.04 GCC 13 32/64",
|
||||||
"cppalliance/droneubuntu2304:1",
|
"cppalliance/droneubuntu2304:1",
|
||||||
{ TOOLSET: 'gcc', COMPILER: 'g++-13', CXXSTD: '11,14,17,20,2b', ADDRMD: '32' } + asan,
|
{ TOOLSET: 'gcc', COMPILER: 'g++-13', CXXSTD: '11,14,17,20,2b', ADDRMD: '32,64' },
|
||||||
"g++-13-multilib",
|
"g++-13-multilib",
|
||||||
),
|
),
|
||||||
|
|
||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
"Linux 23.04 GCC 13 64 ASAN",
|
"Linux 24.04 GCC 14 32 ASAN",
|
||||||
"cppalliance/droneubuntu2304:1",
|
|
||||||
{ TOOLSET: 'gcc', COMPILER: 'g++-13', CXXSTD: '11,14,17,20,2b', ADDRMD: '64' } + asan,
|
|
||||||
"g++-13-multilib",
|
|
||||||
),
|
|
||||||
|
|
||||||
linux_pipeline(
|
|
||||||
"Linux 23.04 GCC 13 32 UBSAN",
|
|
||||||
"cppalliance/droneubuntu2304:1",
|
|
||||||
{ TOOLSET: 'gcc', COMPILER: 'g++-13', CXXSTD: '11,14,17,20,2b', ADDRMD: '32' } + ubsan,
|
|
||||||
"g++-13-multilib",
|
|
||||||
),
|
|
||||||
|
|
||||||
linux_pipeline(
|
|
||||||
"Linux 23.04 GCC 13 64 UBSAN",
|
|
||||||
"cppalliance/droneubuntu2304:1",
|
|
||||||
{ TOOLSET: 'gcc', COMPILER: 'g++-13', CXXSTD: '11,14,17,20,2b', ADDRMD: '64' } + ubsan,
|
|
||||||
"g++-13-multilib",
|
|
||||||
),
|
|
||||||
|
|
||||||
linux_pipeline(
|
|
||||||
"Linux 24.04 GCC 14 32",
|
|
||||||
"cppalliance/droneubuntu2404:1",
|
"cppalliance/droneubuntu2404:1",
|
||||||
{ TOOLSET: 'gcc', COMPILER: 'g++-14', CXXSTD: '11,14,17,20,2b', ADDRMD: '32' },
|
{ TOOLSET: 'gcc', COMPILER: 'g++-14', CXXSTD: '11,14,17,20,2b', ADDRMD: '32' } + asan,
|
||||||
"g++-14-multilib",
|
"g++-14-multilib",
|
||||||
),
|
),
|
||||||
|
|
||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
"Linux 24.04 GCC 14 64",
|
"Linux 24.04 GCC 14 64 ASAN",
|
||||||
"cppalliance/droneubuntu2404:1",
|
"cppalliance/droneubuntu2404:1",
|
||||||
{ TOOLSET: 'gcc', COMPILER: 'g++-14', CXXSTD: '11,14,17,20,2b', ADDRMD: '64' },
|
{ TOOLSET: 'gcc', COMPILER: 'g++-14', CXXSTD: '11,14,17,20,2b', ADDRMD: '64' } + asan,
|
||||||
|
"g++-14-multilib",
|
||||||
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 24.04 GCC 14 32 UBSAN",
|
||||||
|
"cppalliance/droneubuntu2404:1",
|
||||||
|
{ TOOLSET: 'gcc', COMPILER: 'g++-14', CXXSTD: '11,14,17,20,2b', ADDRMD: '32' } + ubsan,
|
||||||
|
"g++-14-multilib",
|
||||||
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 24.04 GCC 14 64 UBSAN",
|
||||||
|
"cppalliance/droneubuntu2404:1",
|
||||||
|
{ TOOLSET: 'gcc', COMPILER: 'g++-14', CXXSTD: '11,14,17,20,2b', ADDRMD: '64' } + ubsan,
|
||||||
"g++-14-multilib",
|
"g++-14-multilib",
|
||||||
),
|
),
|
||||||
|
|
||||||
|
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -159,9 +159,6 @@ jobs:
|
|||||||
container: ubuntu:24.04
|
container: ubuntu:24.04
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
install: clang-18
|
install: clang-18
|
||||||
- toolset: clang
|
|
||||||
cxxstd: "11,14,17,2a"
|
|
||||||
os: macos-11
|
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
cxxstd: "11,14,17,20,2b"
|
cxxstd: "11,14,17,20,2b"
|
||||||
os: macos-12
|
os: macos-12
|
||||||
@ -180,6 +177,10 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Enable Node 16
|
||||||
|
run: |
|
||||||
|
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup container environment
|
- name: Setup container environment
|
||||||
@ -292,9 +293,9 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-20.04
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
- os: macos-11
|
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
- os: macos-13
|
- os: macos-13
|
||||||
|
- os: macos-14
|
||||||
|
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
@ -340,9 +341,9 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-20.04
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
- os: macos-11
|
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
- os: macos-13
|
- os: macos-13
|
||||||
|
- os: macos-14
|
||||||
|
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
@ -398,9 +399,9 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-20.04
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
- os: macos-11
|
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
- os: macos-13
|
- os: macos-13
|
||||||
|
- os: macos-14
|
||||||
|
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ struct monostate
|
|||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1940)
|
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1950)
|
||||||
|
|
||||||
constexpr bool operator<(monostate, monostate) noexcept { return false; }
|
constexpr bool operator<(monostate, monostate) noexcept { return false; }
|
||||||
constexpr bool operator>(monostate, monostate) noexcept { return false; }
|
constexpr bool operator>(monostate, monostate) noexcept { return false; }
|
||||||
|
@ -2,6 +2,12 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
|
#if defined(BOOST_GCC) && BOOST_GCC < 50000
|
||||||
|
# define BOOST_ALLOW_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boost/variant2/variant.hpp>
|
#include <boost/variant2/variant.hpp>
|
||||||
#include <boost/json/value_from.hpp>
|
#include <boost/json/value_from.hpp>
|
||||||
#include <boost/json/serialize.hpp>
|
#include <boost/json/serialize.hpp>
|
||||||
|
@ -2,6 +2,12 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
// https://www.boost.org/LICENSE_1_0.txt
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
|
#if defined(BOOST_GCC) && BOOST_GCC < 50000
|
||||||
|
# define BOOST_ALLOW_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boost/variant2/variant.hpp>
|
#include <boost/variant2/variant.hpp>
|
||||||
#include <boost/json/value_to.hpp>
|
#include <boost/json/value_to.hpp>
|
||||||
#include <boost/json/serialize.hpp>
|
#include <boost/json/serialize.hpp>
|
||||||
|
Reference in New Issue
Block a user