mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
fix: index_tuple metafunctions as index_tuple aliases (if Template-aliases enabled)
This commit is contained in:
parent
57011669a0
commit
c71502f6b6
11 changed files with 111 additions and 45 deletions
|
@ -3,18 +3,20 @@
|
|||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/index_tuple/integer_range.hpp>
|
||||
#include <sprout/index_tuple/enable_make_indexes.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// make_integer_sequence
|
||||
//
|
||||
#if SPROUT_USE_TEMPLATE_ALIASES
|
||||
template<typename T, T N>
|
||||
using make_integer_sequence = sprout::integer_range<T, 0, N>;
|
||||
#else // #if SPROUT_USE_TEMPLATE_ALIASES
|
||||
template<typename T, T N>
|
||||
struct make_integer_sequence
|
||||
: public sprout::enable_make_indexes<
|
||||
sprout::integer_range<T, 0, N>
|
||||
>
|
||||
: public sprout::integer_range<T, 0, N>
|
||||
{};
|
||||
#endif // #if SPROUT_USE_TEMPLATE_ALIASES
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_INDEX_TUPLE_MAKE_INTEGER_SEQUENCE_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue