Skip to content

Commit 4d71bf2

Browse files
Removed noexcept from CBOR write
1 parent 7c57cbf commit 4d71bf2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/rfl/cbor/write.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace rfl::cbor {
1313

1414
/// Returns CBOR bytes.
1515
template <class... Ps>
16-
std::vector<char> write(const auto& _obj) noexcept {
16+
std::vector<char> write(const auto& _obj) {
1717
using T = std::remove_cvref_t<decltype(_obj)>;
1818
using ParentType = parsing::Parent<Writer>;
1919
std::vector<uint8_t> buffer;
@@ -28,7 +28,7 @@ std::vector<char> write(const auto& _obj) noexcept {
2828

2929
/// Writes a CBOR into an ostream.
3030
template <class... Ps>
31-
std::ostream& write(const auto& _obj, std::ostream& _stream) noexcept {
31+
std::ostream& write(const auto& _obj, std::ostream& _stream) {
3232
auto buffer = write<Ps...>(_obj);
3333
_stream.write(buffer.data(), buffer.size());
3434
return _stream;

0 commit comments

Comments
 (0)