Compare commits

...

3 Commits

Author SHA1 Message Date
Peter Dimov
f267609ad6 Update revision history 2025-10-22 21:03:21 +03:00
Peter Dimov
edf1c7925b Correct CMake version check; VERSION_GREATER 3.18 is true for 3.18.1 2025-10-19 21:07:20 +03:00
Peter Dimov
b9d0499a8f BOOST_TEST_THROWS requires a semicolon after https://github.com/boostorg/core/pull/205 2025-10-18 20:23:49 +03:00
4 changed files with 8 additions and 3 deletions

View File

@@ -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")

View File

@@ -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.

View File

@@ -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()

View File

@@ -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()