🚑 fix for #448

parent 83f1d2c8
...@@ -523,8 +523,10 @@ struct has_to_json ...@@ -523,8 +523,10 @@ struct has_to_json
// to_json // // to_json //
///////////// /////////////
template<typename BasicJsonType> template<typename BasicJsonType, typename T, enable_if_t<
void to_json(BasicJsonType& j, typename BasicJsonType::boolean_t b) noexcept std::is_same<typename std::decay<T>::type,
typename BasicJsonType::boolean_t>::value, int> = 0>
void to_json(BasicJsonType& j, T b) noexcept
{ {
external_constructor<value_t::boolean>::construct(j, b); external_constructor<value_t::boolean>::construct(j, b);
} }
......
...@@ -523,8 +523,10 @@ struct has_to_json ...@@ -523,8 +523,10 @@ struct has_to_json
// to_json // // to_json //
///////////// /////////////
template<typename BasicJsonType> template<typename BasicJsonType, typename T, enable_if_t<
void to_json(BasicJsonType& j, typename BasicJsonType::boolean_t b) noexcept std::is_same<typename std::decay<T>::type,
typename BasicJsonType::boolean_t>::value, int> = 0>
void to_json(BasicJsonType& j, T b) noexcept
{ {
external_constructor<value_t::boolean>::construct(j, b); external_constructor<value_t::boolean>::construct(j, b);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment