mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Add static_asserts() to a false path in boost_no_cxx_if_constexpr.ipp as a
further check of implementation correctness.
This commit is contained in:
@ -30,6 +30,7 @@ int test()
|
||||
if constexpr (true) {
|
||||
if constexpr (1 != 0) {
|
||||
if constexpr (same<int, double>::value) {
|
||||
static_assert(!same<int, double>::value, "");
|
||||
return 1;
|
||||
} else if constexpr (false) {
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user