Skip to content

Commit

Permalink
add definition of constexpr static value to avoid linker error
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Jul 8, 2018
1 parent b1a55b1 commit f326334
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions toml/value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ struct value_traits
constexpr static bool is_toml_type = detail::is_valid(detail::check_type<T>());
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
{
Expand Down

0 comments on commit f326334

Please sign in to comment.