mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
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
This commit is contained in:
@ -66,6 +66,13 @@ int test()
|
||||
{
|
||||
int i = square(5);
|
||||
quiet_warning(i);
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case a:
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user