Skip to content

Commit

Permalink
🚧 removed decay (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Feb 20, 2017
1 parent 7a4a16a commit 716485a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,7 @@ struct has_to_json
/////////////

template<typename BasicJsonType, typename T, enable_if_t<
std::is_same<typename std::decay<T>::type,
typename BasicJsonType::boolean_t>::value, int> = 0>
std::is_same<T, typename BasicJsonType::boolean_t>::value, int> = 0>
void to_json(BasicJsonType& j, T b) noexcept
{
external_constructor<value_t::boolean>::construct(j, b);
Expand Down
3 changes: 1 addition & 2 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,7 @@ struct has_to_json
/////////////

template<typename BasicJsonType, typename T, enable_if_t<
std::is_same<typename std::decay<T>::type,
typename BasicJsonType::boolean_t>::value, int> = 0>
std::is_same<T, typename BasicJsonType::boolean_t>::value, int> = 0>
void to_json(BasicJsonType& j, T b) noexcept
{
external_constructor<value_t::boolean>::construct(j, b);
Expand Down

0 comments on commit 716485a

Please sign in to comment.