Skip to content

Commit

Permalink
🔨 fixed interface for to_json function
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Mar 11, 2017
1 parent f5f6dac commit d9e2dd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ void to_json(BasicJsonType& j, UnscopedEnumType e) noexcept
}

template<typename BasicJsonType>
void to_json(BasicJsonType& j, std::vector<bool> e) noexcept
void to_json(BasicJsonType& j, const std::vector<bool>& e)
{
external_constructor<value_t::array>::construct(j, e);
}
Expand Down
2 changes: 1 addition & 1 deletion src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ void to_json(BasicJsonType& j, UnscopedEnumType e) noexcept
}

template<typename BasicJsonType>
void to_json(BasicJsonType& j, std::vector<bool> e) noexcept
void to_json(BasicJsonType& j, const std::vector<bool>& e)
{
external_constructor<value_t::array>::construct(j, e);
}
Expand Down

0 comments on commit d9e2dd0

Please sign in to comment.