Skip to content

Commit

Permalink
try msvc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminghuang committed Jan 20, 2024
1 parent 1a2981b commit 71a1ad0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/hpp_proto/dynamic_serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ class dynamic_serializer {
return std::errc::illegal_byte_sequence;
}

constexpr auto Opts = glz::opening_handled_off<glz::ws_handled_off<Options>()>();
static constexpr auto Opts = glz::opening_handled_off<glz::ws_handled_off<Options>()>();

uint32_t field_index = 0;

Expand Down Expand Up @@ -1476,7 +1476,7 @@ class dynamic_serializer {
return dynamic_serializer{fileset};
}

template <auto Options = glz::opts{}, concepts::contiguous_byte_range InputRange, class OutputRange>
template <auto Options = glz::opts{}, class InputRange, class OutputRange>
hpp::proto::errc proto_to_json(std::string_view message_name,
InputRange &&pb_encoded_stream, OutputRange &&buffer,
uint32_t indentation_level = 0) const {
Expand All @@ -1497,7 +1497,7 @@ class dynamic_serializer {
return {};
}

template <auto Options = glz::opts{}, concepts::contiguous_byte_range InputRange>
template <auto Options = glz::opts{}, class InputRange>
expected<std::string, hpp::proto::errc> proto_to_json(std::string_view message_name,
InputRange &&pb_encoded_stream) {
std::string result;
Expand Down

0 comments on commit 71a1ad0

Please sign in to comment.