diff options
author | bugaevskiy <bugaevskiy@yandex-team.com> | 2022-11-07 15:18:41 +0300 |
---|---|---|
committer | bugaevskiy <bugaevskiy@yandex-team.com> | 2022-11-07 15:18:41 +0300 |
commit | 561aeaf8479d7bc3ccba32fd81361b863147b010 (patch) | |
tree | 42d783cb830788210cecbe978f0d8146ae6fa623 | |
parent | 44784247f3079a5761f648ba645dd3ab393027bf (diff) | |
download | ydb-561aeaf8479d7bc3ccba32fd81361b863147b010.tar.gz |
Import boost/variant2
-rw-r--r-- | contrib/restricted/boost/CMakeLists.txt | 1 | ||||
-rw-r--r-- | contrib/restricted/boost/system/CMakeLists.txt | 2 | ||||
-rw-r--r-- | contrib/restricted/boost/variant2/CMakeLists.txt | 19 | ||||
-rw-r--r-- | contrib/restricted/boost/variant2/README.md | 18 |
4 files changed, 39 insertions, 1 deletions
diff --git a/contrib/restricted/boost/CMakeLists.txt b/contrib/restricted/boost/CMakeLists.txt index 7763b2dba1..1b4eb0485e 100644 --- a/contrib/restricted/boost/CMakeLists.txt +++ b/contrib/restricted/boost/CMakeLists.txt @@ -92,6 +92,7 @@ add_subdirectory(unordered) add_subdirectory(utility) add_subdirectory(uuid) add_subdirectory(variant) +add_subdirectory(variant2) add_subdirectory(winapi) add_subdirectory(xpressive) diff --git a/contrib/restricted/boost/system/CMakeLists.txt b/contrib/restricted/boost/system/CMakeLists.txt index 778bdfb252..0595b614f2 100644 --- a/contrib/restricted/boost/system/CMakeLists.txt +++ b/contrib/restricted/boost/system/CMakeLists.txt @@ -13,9 +13,9 @@ target_include_directories(restricted-boost-system INTERFACE ) target_link_libraries(restricted-boost-system INTERFACE contrib-libs-cxxsupp - yutil restricted-boost-assert restricted-boost-config restricted-boost-throw_exception + restricted-boost-variant2 restricted-boost-winapi ) diff --git a/contrib/restricted/boost/variant2/CMakeLists.txt b/contrib/restricted/boost/variant2/CMakeLists.txt new file mode 100644 index 0000000000..8d14bfc176 --- /dev/null +++ b/contrib/restricted/boost/variant2/CMakeLists.txt @@ -0,0 +1,19 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(restricted-boost-variant2 INTERFACE) +target_include_directories(restricted-boost-variant2 INTERFACE + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/variant2/include +) +target_link_libraries(restricted-boost-variant2 INTERFACE + contrib-libs-cxxsupp + restricted-boost-assert + restricted-boost-config + restricted-boost-mp11 +) diff --git a/contrib/restricted/boost/variant2/README.md b/contrib/restricted/boost/variant2/README.md new file mode 100644 index 0000000000..d49356b4d3 --- /dev/null +++ b/contrib/restricted/boost/variant2/README.md @@ -0,0 +1,18 @@ +# Boost.Variant2 + +This repository contains a never-valueless, strong guarantee, C++11/14/17 +implementation of [std::variant](http://en.cppreference.com/w/cpp/utility/variant). +See [the documentation](https://www.boost.org/libs/variant2) +for more information. + +The library is part of Boost, starting from release 1.71. It depends on +Boost.Mp11, Boost.Config, and Boost.Assert. + +Supported compilers: + +* g++ 4.8 or later with `-std=c++11` or above +* clang++ 3.9 or later with `-std=c++11` or above +* Visual Studio 2015, 2017, 2019 + +Tested on [Github Actions](https://github.com/boostorg/variant2/actions) and +[Appveyor](https://ci.appveyor.com/project/pdimov/variant2-fkab9). |