Skip to content

Commit

Permalink
Fix default is_index
Browse files Browse the repository at this point in the history
For type traits that are inferring characteristics of type(s), the default needs some kind of implementation. Otherwise you can get compile errors due to incomplete types.
  • Loading branch information
justusc committed Apr 16, 2024
1 parent 20167a3 commit 2e0f4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btas/index_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class has_integral_value_type {
/// test _Index conforms the TWG.Index concept
/// check only value_type and operator[]
template<typename ...>
class is_index;
class is_index : public std::false_type {};

template<typename _Index>
class is_index<_Index> {
Expand Down

0 comments on commit 2e0f4e7

Please sign in to comment.