fix: index_tuple metafunctions as index_tuple aliases (if Template-aliases enabled)

This commit is contained in:
bolero-MURAKAMI 2013-05-12 11:05:31 +09:00
parent 57011669a0
commit c71502f6b6
11 changed files with 111 additions and 45 deletions

View file

@ -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