Files
callable_traits/example/expand_args.cpp
2016-12-10 18:25:20 -06:00

22 lines
489 B
C++

/*<-
Copyright Barrett Adair 2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt)
->*/
//[ expand_args
#include <boost/callable_traits/expand_args.hpp>
namespace ct = boost::callable_traits;
void f(int, char);
template<typename, typename> struct foo{};
int main() {
using args = ct::expand_args_t<decltype(f), foo>;
static_assert(std::is_same<args, foo<int, char>>::value, "");
}
//]