summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-06 13:59:51 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-06 14:06:26 (GMT)
commitecb1d5b47a75a88653fe508abec1a664cc81595f (patch)
tree719c9be62a59b45942612630efc001f2ca65915c /Tests
parent827309af76fe3f51a2d589148ef98cf91f510c2b (diff)
downloadCMake-ecb1d5b47a75a88653fe508abec1a664cc81595f.zip
CMake-ecb1d5b47a75a88653fe508abec1a664cc81595f.tar.gz
CMake-ecb1d5b47a75a88653fe508abec1a664cc81595f.tar.bz2
Features: VS 2013 Update 3 supports initializer lists (#15494)
VS 2013 originally claimed to support initializer lists but a bug was found in which it generated bad code silently. For this reason we previously considered support to not be present. However, Update 3 adds a hard error on cases that previously generated bad code, so it is now safe to use initializer lists with VS 2013 Update 3 or greater. At worst a compiler error will be issued in the cases that do not work, but that is no different from any other compiler-specific workaround a project code may need.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/cxx_generalized_initializers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CompileFeatures/cxx_generalized_initializers.cpp b/Tests/CompileFeatures/cxx_generalized_initializers.cpp
index 13544f3..ad05f12 100644
--- a/Tests/CompileFeatures/cxx_generalized_initializers.cpp
+++ b/Tests/CompileFeatures/cxx_generalized_initializers.cpp
@@ -1,5 +1,5 @@
-#if defined(_MSC_VER) && _MSC_VER == 1800
-# error "VS 2013 does not safely support this"
+#if defined(_MSC_VER) && _MSC_VER == 1800 && _MSC_FULL_VER < 180030723
+# error "VS 2013 safely supports this only with Update 3 or greater"
#endif
// Dummy implementation. Test only the compiler feature.