diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-04-06 09:40:11 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-04-16 13:16:23 (GMT) |
commit | a36b957fc4594264965a86b54e5eab40520cf79d (patch) | |
tree | 08a5c7468d8095e5ccb34e1942d778303414e648 /Tests | |
parent | 8472ef243ffc9988ea8fb83cbc7acdf3f0daa239 (diff) | |
download | CMake-a36b957fc4594264965a86b54e5eab40520cf79d.zip CMake-a36b957fc4594264965a86b54e5eab40520cf79d.tar.gz CMake-a36b957fc4594264965a86b54e5eab40520cf79d.tar.bz2 |
Features: Add cxx_template_template_parameters.
Extend the existing feature infrastructure as needed to support
both C++11 and C++98 features.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CompileFeatures/cxx_template_template_parameters.cpp | 18 | ||||
-rw-r--r-- | Tests/SystemInformation/SystemInformation.in | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_template_template_parameters.cpp b/Tests/CompileFeatures/cxx_template_template_parameters.cpp new file mode 100644 index 0000000..0fdd18d --- /dev/null +++ b/Tests/CompileFeatures/cxx_template_template_parameters.cpp @@ -0,0 +1,18 @@ + +template<template <typename> class T, typename U> +void someFunc(T<U>) +{ + +} + +template<typename T> +struct A +{ + +}; + +void otherFunc() +{ + A<int> a; + someFunc(a); +} diff --git a/Tests/SystemInformation/SystemInformation.in b/Tests/SystemInformation/SystemInformation.in index 954a2fe..9966e8d 100644 --- a/Tests/SystemInformation/SystemInformation.in +++ b/Tests/SystemInformation/SystemInformation.in @@ -26,6 +26,7 @@ CMAKE_CXX11_STANDARD_COMPILE_OPTION == "${CMAKE_CXX11_STANDARD_COMPILE_OPTION}" CMAKE_CXX98_EXTENSION_COMPILE_OPTION == "${CMAKE_CXX98_EXTENSION_COMPILE_OPTION}" CMAKE_CXX11_EXTENSION_COMPILE_OPTION == "${CMAKE_CXX11_EXTENSION_COMPILE_OPTION}" CMAKE_CXX_COMPILE_FEATURES == "${CMAKE_CXX_COMPILE_FEATURES}" +CMAKE_CXX98_COMPILE_FEATURES == "${CMAKE_CXX98_COMPILE_FEATURES}" CMAKE_CXX11_COMPILE_FEATURES == "${CMAKE_CXX11_COMPILE_FEATURES}" // C shared library flag |