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:
Zach Laine
2018-03-17 13:24:51 -05:00
parent 15d78e548f
commit d03a3756d9

View File

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