From 7a13042264595124ee3af0aa646e4224a334181d Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Sun, 15 Oct 2023 17:08:22 +0200 Subject: [PATCH] use inline constexpr instead of static constexpr for free constants --- include/argparse/argparse.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index a779e01..9226649 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -72,7 +72,7 @@ struct HasContainerTraits< decltype(std::declval().size())>> : std::true_type {}; template -static constexpr bool IsContainer = HasContainerTraits::value; +inline constexpr bool IsContainer = HasContainerTraits::value; template struct HasStreamableTraits : std::false_type {}; @@ -84,7 +84,7 @@ struct HasStreamableTraits< : std::true_type {}; template -static constexpr bool IsStreamable = HasStreamableTraits::value; +inline constexpr bool IsStreamable = HasStreamableTraits::value; constexpr std::size_t repr_max_container_size = 5;