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:
parent
e4a0f7549b
commit
3a999dd70c
54 changed files with 154 additions and 152 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue