I wrote a small using
statement to have easy access to the types of a variadic template parameter pack.
template<size_t index, typename args...>
using get = std::tuple_element<index, std::tuple<args...>>::type;
But compiling this with clang (3.5.0) or gcc (4.9.0) fails. Here is the error output of clang:
error: expected ',' or '>' in template-parameter-list template<size_t index, typename args...>
^
Is the using
statement not combinable with variadic templates? Or am I doing something wrong?