mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
fix tuple_element: support SFINAE-friendly
This commit is contained in:
parent
f42e92b448
commit
c15de6136b
64 changed files with 984 additions and 113 deletions
|
@ -32,11 +32,9 @@ namespace std {
|
|||
// tuple_element
|
||||
//
|
||||
template<std::size_t I, typename T, T... Is>
|
||||
struct tuple_element<I, sprout::integer_sequence<T, Is...> > {
|
||||
static_assert(I < sizeof...(Is), "tuple_element<>: index out of range");
|
||||
public:
|
||||
typedef typename sprout::pack_element_c<I, T, Is...>::type type;
|
||||
};
|
||||
struct tuple_element<I, sprout::integer_sequence<T, Is...> >
|
||||
: public sprout::pack_element_c<I, T, Is...>
|
||||
{};
|
||||
|
||||
#if !(SPROUT_USE_TEMPLATE_ALIASES && !defined(SPROUT_WORKAROUND_NO_TEMPLATE_ARGUMENT_DEDUCTION_WITH_ALIASES))
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue