forked from boostorg/config
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);
|
int i = square(5);
|
||||||
quiet_warning(i);
|
quiet_warning(i);
|
||||||
|
|
||||||
|
switch (i)
|
||||||
|
{
|
||||||
|
case a:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user