2
0
mirror of https://github.com/boostorg/cmake.git synced 2026-01-19 16:12:15 +00:00
Files
cmake/test/boost_test/requires_variadic_templates.cpp
2019-12-26 22:54:04 +02:00

14 lines
301 B
C++

// 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;
}