From 6eb5aff4ef67314c6b17bb2bd134d4fb696dd4bb Mon Sep 17 00:00:00 2001 From: Justus Calvin Date: Tue, 16 Apr 2024 09:08:42 -0700 Subject: [PATCH] Convert templated constexpr values from static to inline. --- btas/type_traits.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/btas/type_traits.h b/btas/type_traits.h index af466612..1c5942d5 100644 --- a/btas/type_traits.h +++ b/btas/type_traits.h @@ -131,29 +131,29 @@ namespace btas { constexpr static bool has_data_v().data())>> = true; template - constexpr static bool has_size_v = false; + inline constexpr bool has_size_v = false; template - constexpr static bool has_size_v().size())>> = true; + inline constexpr bool has_size_v().size())>> = true; template - constexpr static bool has_nonmember_begin_v = has_begin_v; // if have member begin, std::begin will apply + inline constexpr bool has_nonmember_begin_v = has_begin_v; // if have member begin, std::begin will apply template - constexpr static bool has_nonmember_begin_v()))>> = true; + inline constexpr bool has_nonmember_begin_v()))>> = true; template - constexpr static bool has_nonmember_end_v = has_end_v; // if have member end, std::end will apply + inline constexpr bool has_nonmember_end_v = has_end_v; // if have member end, std::end will apply template - constexpr static bool has_nonmember_end_v()))>> = true; + inline constexpr bool has_nonmember_end_v()))>> = true; template - constexpr static bool has_nonmember_data_v = has_data_v; // if have member data, std::data will apply + inline constexpr bool has_nonmember_data_v = has_data_v; // if have member data, std::data will apply template - constexpr static bool has_nonmember_data_v()))>> = true; + inline constexpr bool has_nonmember_data_v()))>> = true; template - constexpr static bool has_nonmember_size_v = has_end_v; // if have member size, std::size will apply + inline constexpr bool has_nonmember_size_v = has_end_v; // if have member size, std::size will apply template - constexpr static bool has_nonmember_size_v()))>> = true; + inline constexpr bool has_nonmember_size_v()))>> = true; // Checks if an iterator is random access template