🚑 fix for #448
This commit is contained in:
parent
83f1d2c81b
commit
1f72c38861
2 changed files with 8 additions and 4 deletions
|
@ -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
|
||||||
// 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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue