From cd72cbe273837c2f04a15b94e47b6ef58675cc5d Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sat, 27 Jun 2015 13:08:29 +0200 Subject: [PATCH] Add another constexpr test MSVC 14 RC doesn't call the constexpr conversion operator in some cases. It complains: boost_no_constexpr.ipp(72): error C2051: case expression not constant --- test/boost_no_constexpr.ipp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/boost_no_constexpr.ipp b/test/boost_no_constexpr.ipp index 5084ae03..7b601379 100644 --- a/test/boost_no_constexpr.ipp +++ b/test/boost_no_constexpr.ipp @@ -66,6 +66,13 @@ int test() { int i = square(5); quiet_warning(i); + + switch (i) + { + case a: + break; + } + return 0; }