Skip to content

Commit

Permalink
basic_pbf_builder constructor can not be noexcept
Browse files Browse the repository at this point in the history
Because the class is derived from parent basic_pbf_writer and uses a
non-noexcept constructor of that class.
  • Loading branch information
joto committed Dec 20, 2024
1 parent 32015c6 commit 4f8d58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/protozero/basic_pbf_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class basic_pbf_builder : public basic_pbf_writer<TBuffer> {
* @param tag Tag of the field that will be written
*/
template <typename P>
basic_pbf_builder(basic_pbf_writer<TBuffer>& parent_writer, P tag) noexcept :
basic_pbf_builder(basic_pbf_writer<TBuffer>& parent_writer, P tag) :
basic_pbf_writer<TBuffer>{parent_writer, pbf_tag_type(tag)} {
}

Expand Down

0 comments on commit 4f8d58b

Please sign in to comment.