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

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

@ -61,13 +61,26 @@ namespace sprout {
I
>
{};
template<typename T, T I, std::size_t N>
struct integer_n
: public sprout::enable_make_indexes<
sprout::detail::integer_n_impl<T, I, N>
>
{};
} // namespace detail
//
// integer_range
//
#if SPROUT_USE_TEMPLATE_ALIASES
template<typename T, T I, std::size_t N>
using integer_n = typename sprout::detail::integer_n<T, I, N>::type;
#else // #if SPROUT_USE_TEMPLATE_ALIASES
template<typename T, T I, std::size_t N>
struct integer_n
: public sprout::enable_make_indexes<
sprout::detail::integer_n_impl<T, I, N>
>
: public sprout::detail::integer_n<T, I, N>
{};
#endif // #if SPROUT_USE_TEMPLATE_ALIASES
} // namespace sprout
#endif // #ifndef SPROUT_INDEX_TUPLE_INTEGER_N_HPP