From f32633414773ed0ec0f41a791afd14b52b0862a1 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sun, 8 Jul 2018 18:58:38 +0900 Subject: [PATCH] add definition of constexpr static value to avoid linker error --- toml/value.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toml/value.hpp b/toml/value.hpp index 3240956..cd1e385 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -174,6 +174,10 @@ struct value_traits constexpr static bool is_toml_type = detail::is_valid(detail::check_type()); typedef typename detail::toml_default_type::type type; }; +template +constexpr value_t value_traits::type_index; +template +constexpr bool value_traits::is_toml_type; class value {