forked from boostorg/config
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 (true) {
|
||||||
if constexpr (1 != 0) {
|
if constexpr (1 != 0) {
|
||||||
if constexpr (same<int, double>::value) {
|
if constexpr (same<int, double>::value) {
|
||||||
|
static_assert(!same<int, double>::value, "");
|
||||||
return 1;
|
return 1;
|
||||||
} else if constexpr (false) {
|
} else if constexpr (false) {
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user