From d03a3756d91418a00af06ec2b0a8fd6257b04cbb Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Sat, 17 Mar 2018 13:24:51 -0500 Subject: [PATCH] Add static_asserts() to a false path in boost_no_cxx_if_constexpr.ipp as a further check of implementation correctness. --- test/boost_no_cxx17_if_constexpr.ipp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/boost_no_cxx17_if_constexpr.ipp b/test/boost_no_cxx17_if_constexpr.ipp index 8c40e69c..3392ee73 100644 --- a/test/boost_no_cxx17_if_constexpr.ipp +++ b/test/boost_no_cxx17_if_constexpr.ipp @@ -30,6 +30,7 @@ int test() if constexpr (true) { if constexpr (1 != 0) { if constexpr (same::value) { + static_assert(!same::value, ""); return 1; } else if constexpr (false) { return 1;