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/CompileFeatures/cxx_template_template_parameters.cpp | |
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/CompileFeatures/cxx_template_template_parameters.cpp')
-rw-r--r-- | Tests/CompileFeatures/cxx_template_template_parameters.cpp | 18 |
1 files changed, 18 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); +} |