Allow void as an option with BOOST_INTRUSIVE_VARIADIC_TEMPLATES enabled

This commit is contained in:
Jeff Snyder
2019-05-08 16:22:23 +01:00
parent f0b48ce2cf
commit b795de217b

View File

@@ -209,6 +209,12 @@ struct do_pack<typelist<Prev, Last> >
typedef typename Prev::template pack<Last> type;
};
template<class ...Others>
struct do_pack<typelist<void, Others...> >
{
typedef typename do_pack<typelist<Others...> >::type type;
};
template<class Prev, class ...Others>
struct do_pack<typelist<Prev, Others...> >
{