Skip to content

Commit 4cd1639

Browse files
committed
basic_pbf_builder constructor can not be noexcept
Because the class is derived from parent basic_pbf_writer and uses a non-noexcept constructor of that class.
1 parent eb3c3e1 commit 4cd1639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/protozero/basic_pbf_builder.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class basic_pbf_builder : public basic_pbf_writer<TBuffer> {
6767
* @param tag Tag of the field that will be written
6868
*/
6969
template <typename P>
70-
basic_pbf_builder(basic_pbf_writer<TBuffer>& parent_writer, P tag) noexcept :
70+
basic_pbf_builder(basic_pbf_writer<TBuffer>& parent_writer, P tag) :
7171
basic_pbf_writer<TBuffer>{parent_writer, pbf_tag_type(tag)} {
7272
}
7373

0 commit comments

Comments
 (0)