Explicitly write out boost::tuple template arguments

GCC 4.6 doesn't support using variadic arguments for a fixed length template.
There's a config macro for this, but might as well use the same code
everywhere.
This commit is contained in:
Daniel James
2017-04-23 09:31:18 +01:00
parent 3117611a55
commit cfe4c26f99

View File

@ -1470,8 +1470,10 @@ inline void construct_from_args(
template <typename A0> struct detect_boost_tuple
{
template <typename... T0>
static choice1::type test(choice1, boost::tuple<T0...> const&);
template <typename T0, typename T1, typename T2, typename T3, typename T4,
typename T5, typename T6, typename T7, typename T8, typename T9>
static choice1::type test(
choice1, boost::tuple<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> const&);
static choice2::type test(choice2, ...);