🚧 removed decay (#448)

This commit is contained in:
Niels Lohmann 2017-02-20 16:27:16 +01:00
parent 7a4a16a7db
commit 716485a965
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 4 deletions

View file

@ -524,8 +524,7 @@ struct has_to_json
///////////// /////////////
template<typename BasicJsonType, typename T, enable_if_t< template<typename BasicJsonType, typename T, enable_if_t<
std::is_same<typename std::decay<T>::type, std::is_same<T, typename BasicJsonType::boolean_t>::value, int> = 0>
typename BasicJsonType::boolean_t>::value, int> = 0>
void to_json(BasicJsonType& j, T b) noexcept void to_json(BasicJsonType& j, T b) noexcept
{ {
external_constructor<value_t::boolean>::construct(j, b); external_constructor<value_t::boolean>::construct(j, b);

View file

@ -524,8 +524,7 @@ struct has_to_json
///////////// /////////////
template<typename BasicJsonType, typename T, enable_if_t< template<typename BasicJsonType, typename T, enable_if_t<
std::is_same<typename std::decay<T>::type, std::is_same<T, typename BasicJsonType::boolean_t>::value, int> = 0>
typename BasicJsonType::boolean_t>::value, int> = 0>
void to_json(BasicJsonType& j, T b) noexcept void to_json(BasicJsonType& j, T b) noexcept
{ {
external_constructor<value_t::boolean>::construct(j, b); external_constructor<value_t::boolean>::construct(j, b);