diff options
Diffstat (limited to '')
-rw-r--r-- | src/boost/tools/cmake/test/boost_test/requires_variadic_templates.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/boost/tools/cmake/test/boost_test/requires_variadic_templates.cpp b/src/boost/tools/cmake/test/boost_test/requires_variadic_templates.cpp new file mode 100644 index 000000000..ce516c60b --- /dev/null +++ b/src/boost/tools/cmake/test/boost_test/requires_variadic_templates.cpp @@ -0,0 +1,13 @@ +// Copyright 2019 Peter Dimov +// Distributed under the Boost Software License, Version 1.0. +// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt + +template<class... T> int f() +{ + return sizeof...(T); +} + +int main() +{ + return f<int, void, float>() == 3? 0: 1; +} |