mirror of
https://github.com/boostorg/variant2.git
synced 2025-12-23 07:12:33 +01:00
Compare commits
3 Commits
feature/co
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f267609ad6 | ||
|
|
edf1c7925b | ||
|
|
b9d0499a8f |
@@ -19,7 +19,7 @@ target_link_libraries(boost_variant2
|
||||
Boost::mp11
|
||||
)
|
||||
|
||||
if(CMAKE_VERSION VERSION_GREATER 3.18 AND CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||
if(NOT CMAKE_VERSION VERSION_LESS 3.19 AND CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||
|
||||
file(GLOB_RECURSE boost_variant2_IDEFILES CONFIGURE_DEPENDS include/*.hpp)
|
||||
source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_variant2_IDEFILES} PREFIX "Header Files")
|
||||
|
||||
@@ -8,6 +8,11 @@ https://www.boost.org/LICENSE_1_0.txt
|
||||
# Revision History
|
||||
:idprefix: changelog_
|
||||
|
||||
## Changes in 1.90.0
|
||||
|
||||
* More functions have been marked as `constexpr`, including `~variant`.
|
||||
This didn't matter before {cpp}20, but does now.
|
||||
|
||||
## Changes in 1.88.0
|
||||
|
||||
* Use the smallest appropriate unsigned type for the index.
|
||||
|
||||
@@ -45,7 +45,7 @@ void test()
|
||||
variant<Y1, Y2> v1( in_place_type_t<Y1>{} );
|
||||
variant<Y1, Y2> v2( in_place_type_t<Y2>{} );
|
||||
|
||||
BOOST_TEST_THROWS( v1 = v2, std::runtime_error )
|
||||
BOOST_TEST_THROWS( v1 = v2, std::runtime_error );
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
@@ -45,7 +45,7 @@ void test()
|
||||
variant<Y1, Y2> v1( in_place_type_t<Y1>{} );
|
||||
variant<Y1, Y2> v2( in_place_type_t<Y2>{} );
|
||||
|
||||
BOOST_TEST_THROWS( v1 = std::move( v2 ), std::runtime_error )
|
||||
BOOST_TEST_THROWS( v1 = std::move( v2 ), std::runtime_error );
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
Reference in New Issue
Block a user