diff options
author | Brad King <brad.king@kitware.com> | 2015-04-07 15:29:40 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-04-07 15:29:40 (GMT) |
commit | 7ee897beec045761e796ac7468ed6e43cd58f1fe (patch) | |
tree | aa7e479013ce1e5d4bd1ebea5a535500663a5d1b /Tests | |
parent | 64a6491fb634a77195034fff41d286ce1a337ff6 (diff) | |
parent | ecb1d5b47a75a88653fe508abec1a664cc81595f (diff) | |
download | CMake-7ee897beec045761e796ac7468ed6e43cd58f1fe.zip CMake-7ee897beec045761e796ac7468ed6e43cd58f1fe.tar.gz CMake-7ee897beec045761e796ac7468ed6e43cd58f1fe.tar.bz2 |
Merge topic 'vs-compiler-feature-2013-update'
ecb1d5b4 Features: VS 2013 Update 3 supports initializer lists (#15494)
827309af Tests: Fix CompileFeatures cxx_generalized_initializers example
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CompileFeatures/cxx_generalized_initializers.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Tests/CompileFeatures/cxx_generalized_initializers.cpp b/Tests/CompileFeatures/cxx_generalized_initializers.cpp index 7bf356b..ad05f12 100644 --- a/Tests/CompileFeatures/cxx_generalized_initializers.cpp +++ b/Tests/CompileFeatures/cxx_generalized_initializers.cpp @@ -1,3 +1,6 @@ +#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. namespace std { @@ -7,8 +10,9 @@ namespace std { { const _E* __begin_; size_t __size_; - - initializer_list(const int*, long unsigned int) {} + public: + template <typename T1, typename T2> + initializer_list(T1, T2) {} }; } |