Skip to content

Commit

Permalink
Remove unnecessary default for require_bytes error parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
John Talling committed Nov 9, 2017
1 parent 6ad43eb commit 094bc89
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/spotify/json/detail/decode_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ json_force_inline void fail_if(
}

template <size_t num_required_bytes, typename string_type>
json_force_inline void require_bytes(
const decode_context &context,
const string_type &error = "Unexpected end of input") {
json_force_inline void require_bytes(const decode_context &context, const string_type &error) {
fail_if(context, context.remaining() < num_required_bytes, error);
}

Expand Down

0 comments on commit 094bc89

Please sign in to comment.