mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
add definition of constexpr static value to avoid linker error
This commit is contained in:
@@ -174,6 +174,10 @@ struct value_traits
|
|||||||
constexpr static bool is_toml_type = detail::is_valid(detail::check_type<T>());
|
constexpr static bool is_toml_type = detail::is_valid(detail::check_type<T>());
|
||||||
typedef typename detail::toml_default_type<type_index>::type type;
|
typedef typename detail::toml_default_type<type_index>::type type;
|
||||||
};
|
};
|
||||||
|
template<typename T>
|
||||||
|
constexpr value_t value_traits<T>::type_index;
|
||||||
|
template<typename T>
|
||||||
|
constexpr bool value_traits<T>::is_toml_type;
|
||||||
|
|
||||||
class value
|
class value
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user