mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 19:19:32 -05:00
CompileFeatures: Relax cxx_relaxed_constexpr compiler requirements
This in effect means that cxx_relaxed_constexpr is now supported by MSVC and Intel 18.0-18.04.
This commit is contained in:
committed by
Brad King
parent
4aace9b015
commit
1ebb0d79fe
@@ -22,6 +22,7 @@ constexpr int g(const int (&is)[4])
|
||||
|
||||
int someFunc()
|
||||
{
|
||||
constexpr int k3 = g({ 4, 5, 6, 7 });
|
||||
constexpr int values[4] = { 4, 5, 6, 7 };
|
||||
constexpr int k3 = g(values);
|
||||
return k3 - 42;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user