Skip to content

Commit

Permalink
Update type_traits.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TartanLlama authored Apr 26, 2019
1 parent 9711cc8 commit 2b464e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tl/type_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ namespace tl {
template <bool B>
using bool_constant = std::integral_constant<bool, B>;

template <bool B>
using index_constant = std::integral_constant<std::size_t, B>;
template <std::size_t N>
using index_constant = std::integral_constant<std::size_t, N>;

template <class...> struct conjunction : std::true_type { };
template <class B> struct conjunction<B> : B { };
Expand Down

0 comments on commit 2b464e7

Please sign in to comment.