Skip to content

Commit 74f6f0c

Browse files
committed
Fix issue link; fix __cplusplus check
1 parent fc786d3 commit 74f6f0c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/variant_issue_55.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// Copyright 2025 Peter Dimov
32
// Copyright 2025 Vinnie Falco
43
//
@@ -8,7 +7,7 @@
87
// http://www.boost.org/LICENSE_1_0.txt
98

109
// GCC 12+ -Wmaybe-uninitialized false positive tests
11-
// https://github.com/boostorg/variant2/issues/33
10+
// https://github.com/boostorg/variant2/issues/55
1211
//
1312
// GCC 12+'s improved dataflow analysis sees code paths for all alternatives
1413
// in mp_with_index and warns that members may be uninitialized, even though
@@ -17,11 +16,12 @@
1716

1817
#include <boost/system/result.hpp>
1918
#include <boost/core/lightweight_test.hpp>
19+
#include <boost/config.hpp>
2020
#include <exception>
2121
#include <string>
2222

2323
// Check for C++17 std::optional support
24-
#if __cplusplus >= 201703L
24+
#if BOOST_CXX_VERSION >= 201703L
2525
# include <optional>
2626
# define BOOST_VARIANT2_TEST_HAS_OPTIONAL 1
2727
#endif

0 commit comments

Comments
 (0)