1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix inherit_if_xxx decltype

This commit is contained in:
bolero-MURAKAMI 2012-05-14 11:33:36 +09:00
parent e4a0f7549b
commit 3a999dd70c
54 changed files with 154 additions and 152 deletions

View file

@ -38,7 +38,7 @@ namespace sprout {
{}
template<typename T, typename Index>
SPROUT_CONSTEXPR variant_impl(T&& operand, Index)
: tuple_(init(sprout::forward<T>(operand), typename sprout::index_range<0, Index::value>::type()))
: tuple_(init(sprout::forward<T>(operand), sprout::index_range<0, Index::value>::make()))
, which_(Index::value)
{
static_assert(Index::value < sizeof...(Types), "variant<>: invalid operand");