mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
use inline constexpr instead of static constexpr for free constants
This commit is contained in:
parent
b0930ab028
commit
7a13042264
@ -72,7 +72,7 @@ struct HasContainerTraits<
|
||||
decltype(std::declval<T>().size())>> : std::true_type {};
|
||||
|
||||
template <typename T>
|
||||
static constexpr bool IsContainer = HasContainerTraits<T>::value;
|
||||
inline constexpr bool IsContainer = HasContainerTraits<T>::value;
|
||||
|
||||
template <typename T, typename = void>
|
||||
struct HasStreamableTraits : std::false_type {};
|
||||
@ -84,7 +84,7 @@ struct HasStreamableTraits<
|
||||
: std::true_type {};
|
||||
|
||||
template <typename T>
|
||||
static constexpr bool IsStreamable = HasStreamableTraits<T>::value;
|
||||
inline constexpr bool IsStreamable = HasStreamableTraits<T>::value;
|
||||
|
||||
constexpr std::size_t repr_max_container_size = 5;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user