1010#include < string_view>
1111#include < type_traits>
1212
13- // #include "../Box.hpp"
13+ // #include "../Box.hpp"
1414#include " ../Bytestring.hpp"
15- // #include "../Ref.hpp"
16- // #include "../Result.hpp"
15+ // #include "../Ref.hpp"
16+ // #include "../Result.hpp"
1717#include " ../Vectorstring.hpp"
1818#include " ../always_false.hpp"
1919#include " ../internal/is_literal.hpp"
20- // #include "../internal/ptr_cast.hpp"
20+ // #include "../internal/ptr_cast.hpp"
2121#include " ../common.hpp"
2222
2323namespace rfl ::capnproto {
@@ -57,109 +57,109 @@ class RFL_API Writer {
5757 ~Writer ();
5858
5959 template <class T >
60- OutputArrayType array_as_root (const T /* _size*/ ) const noexcept {
60+ OutputArrayType array_as_root (const T /* _size*/ ) const {
6161 static_assert (always_false_v<T>,
6262 " In Cap'n Proto, root values must always be structs." );
6363 throw std::runtime_error (" Unsupported." );
6464 }
6565
6666 template <class T >
67- OutputMapType map_as_root (const T /* _size*/ ) const noexcept {
67+ OutputMapType map_as_root (const T /* _size*/ ) const {
6868 static_assert (always_false_v<T>,
6969 " In Cap'n Proto, root values must always be structs." );
7070 throw std::runtime_error (" Unsupported." );
7171 }
7272
73- Writer::OutputObjectType object_as_root (const size_t _size) const noexcept ;
73+ Writer::OutputObjectType object_as_root (const size_t _size) const ;
7474
7575 template <class T = int >
76- OutputVarType null_as_root () const noexcept {
76+ OutputVarType null_as_root () const {
7777 static_assert (always_false_v<T>,
7878 " In Cap'n Proto, root values must always be structs." );
7979 throw std::runtime_error (" Unsupported." );
8080 }
8181
8282 template <class T = int >
83- OutputUnionType union_as_root () const noexcept {
83+ OutputUnionType union_as_root () const {
8484 static_assert (always_false_v<T>,
8585 " In Cap'n Proto, root values must always be structs." );
8686 throw std::runtime_error (" Unsupported." );
8787 }
8888
8989 template <class T >
90- OutputVarType value_as_root (const T& /* _var*/ ) const noexcept {
90+ OutputVarType value_as_root (const T& /* _var*/ ) const {
9191 static_assert (always_false_v<T>,
9292 " In Cap'n Proto, root values must always be structs." );
9393 throw std::runtime_error (" Unsupported." );
9494 }
9595
9696 OutputArrayType add_array_to_array (const size_t _size,
97- OutputArrayType* _parent) const noexcept ;
97+ OutputArrayType* _parent) const ;
9898
9999 OutputArrayType add_array_to_map (const std::string_view& _name,
100100 const size_t _size,
101- OutputMapType* _parent) const noexcept ;
101+ OutputMapType* _parent) const ;
102102
103103 OutputArrayType add_array_to_object (const std::string_view& _name,
104104 const size_t _size,
105- OutputObjectType* _parent) const noexcept ;
105+ OutputObjectType* _parent) const ;
106106
107107 OutputArrayType add_array_to_union (const size_t _index, const size_t _size,
108- OutputUnionType* _parent) const noexcept ;
108+ OutputUnionType* _parent) const ;
109109
110110 OutputMapType add_map_to_array (const size_t _size,
111- OutputArrayType* _parent) const noexcept ;
111+ OutputArrayType* _parent) const ;
112112
113113 OutputMapType add_map_to_map (const std::string_view& _name,
114114 const size_t _size,
115- OutputMapType* _parent) const noexcept ;
115+ OutputMapType* _parent) const ;
116116
117117 OutputMapType add_map_to_object (const std::string_view& _name,
118118 const size_t _size,
119- OutputObjectType* _parent) const noexcept ;
119+ OutputObjectType* _parent) const ;
120120
121121 OutputMapType add_map_to_union (const size_t _index, const size_t _size,
122- OutputUnionType* _parent) const noexcept ;
122+ OutputUnionType* _parent) const ;
123123
124124 OutputObjectType add_object_to_array (const size_t _size,
125- OutputArrayType* _parent) const noexcept ;
125+ OutputArrayType* _parent) const ;
126126
127127 OutputObjectType add_object_to_map (const std::string_view& _name,
128128 const size_t _size,
129- OutputMapType* _parent) const noexcept ;
129+ OutputMapType* _parent) const ;
130130
131- OutputObjectType add_object_to_object (
132- const std::string_view& _name, const size_t _size,
133- OutputObjectType* _parent) const noexcept ;
131+ OutputObjectType add_object_to_object (const std::string_view& _name,
132+ const size_t _size,
133+ OutputObjectType* _parent) const ;
134134
135135 OutputObjectType add_object_to_union (const size_t _index, const size_t _size,
136- OutputUnionType* _parent) const noexcept ;
136+ OutputUnionType* _parent) const ;
137137
138- OutputUnionType add_union_to_array (OutputArrayType* _parent) const noexcept ;
138+ OutputUnionType add_union_to_array (OutputArrayType* _parent) const ;
139139
140140 OutputUnionType add_union_to_map (const std::string_view& _name,
141- OutputMapType* _parent) const noexcept ;
141+ OutputMapType* _parent) const ;
142142
143143 OutputUnionType add_union_to_object (const std::string_view& _name,
144- OutputObjectType* _parent) const noexcept ;
144+ OutputObjectType* _parent) const ;
145145
146146 OutputUnionType add_union_to_union (const size_t _index,
147- OutputUnionType* _parent) const noexcept ;
147+ OutputUnionType* _parent) const ;
148148
149- OutputVarType add_null_to_array (OutputArrayType* _parent) const noexcept ;
149+ OutputVarType add_null_to_array (OutputArrayType* _parent) const ;
150150
151151 OutputVarType add_null_to_map (const std::string_view& _name,
152- OutputMapType* _parent) const noexcept ;
152+ OutputMapType* _parent) const ;
153153
154154 OutputVarType add_null_to_object (const std::string_view& _name,
155- OutputObjectType* _parent) const noexcept ;
155+ OutputObjectType* _parent) const ;
156156
157157 OutputVarType add_null_to_union (const size_t _index,
158- OutputUnionType* _parent) const noexcept ;
158+ OutputUnionType* _parent) const ;
159159
160160 template <class T >
161161 OutputVarType add_value_to_array (const T& _var,
162- OutputArrayType* _parent) const noexcept {
162+ OutputArrayType* _parent) const {
163163 if constexpr (std::is_same<std::remove_cvref_t <T>, std::string>()) {
164164 _parent->val_ .set (_parent->ix_ ++, _var.c_str ());
165165
@@ -189,7 +189,7 @@ class RFL_API Writer {
189189
190190 template <class T >
191191 OutputVarType add_value_to_map (const std::string_view& _name, const T& _var,
192- OutputMapType* _parent) const noexcept {
192+ OutputMapType* _parent) const {
193193 auto entries =
194194 OutputArrayType{_parent->val_ .get (" entries" ).as <capnp::DynamicList>()};
195195 auto new_entry = add_object_to_array (2 , &entries);
@@ -200,7 +200,7 @@ class RFL_API Writer {
200200 template <class T >
201201 OutputVarType add_value_to_object (const std::string_view& _name,
202202 const T& _var,
203- OutputObjectType* _parent) const noexcept {
203+ OutputObjectType* _parent) const {
204204 if constexpr (std::is_same<std::remove_cvref_t <T>, std::string>()) {
205205 _parent->val_ .set (_name.data (), _var.c_str ());
206206
@@ -228,7 +228,7 @@ class RFL_API Writer {
228228
229229 template <class T >
230230 OutputVarType add_value_to_union (const size_t _index, const T& _var,
231- OutputUnionType* _parent) const noexcept {
231+ OutputUnionType* _parent) const {
232232 const auto field = _parent->val_ .getSchema ().getFields ()[_index];
233233
234234 if constexpr (std::is_same<std::remove_cvref_t <T>, std::string>()) {
@@ -256,11 +256,11 @@ class RFL_API Writer {
256256 return OutputVarType{};
257257 }
258258
259- void end_array (OutputArrayType* /* _arr*/ ) const noexcept {}
259+ void end_array (OutputArrayType* /* _arr*/ ) const {}
260260
261- void end_map (OutputMapType* /* _obj*/ ) const noexcept {}
261+ void end_map (OutputMapType* /* _obj*/ ) const {}
262262
263- void end_object (OutputObjectType* /* _obj*/ ) const noexcept {}
263+ void end_object (OutputObjectType* /* _obj*/ ) const {}
264264
265265 private:
266266 capnp::DynamicStruct::Builder* root_;
0 commit comments