From 2e0f4e712c186245f5656545fe4141b8b27764d9 Mon Sep 17 00:00:00 2001 From: Justus Calvin Date: Tue, 16 Apr 2024 08:25:49 -0700 Subject: [PATCH] Fix default is_index 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. --- btas/index_traits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btas/index_traits.h b/btas/index_traits.h index c28bff13..f28fda23 100644 --- a/btas/index_traits.h +++ b/btas/index_traits.h @@ -26,7 +26,7 @@ class has_integral_value_type { /// test _Index conforms the TWG.Index concept /// check only value_type and operator[] template -class is_index; +class is_index : public std::false_type {}; template class is_index<_Index> {