Skip to content

Commit a931edc

Browse files
committed
CborValue - Add noexcept to move constructor and operator
1 parent 7dd7f8e commit a931edc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aws-cpp-sdk-core/source/utils/cbor/CborValue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ CborValue& CborValue::operator=(const CborValue& other)
3838
return *this;
3939
}
4040

41-
CborValue::CborValue(CborValue&& value) :
41+
CborValue::CborValue(CborValue&& value) noexcept :
4242
m_body(std::move(value.m_body))
4343
{
4444
auto cursor = Aws::Crt::ByteCursorFromArray(reinterpret_cast<const uint8_t*>(m_body.c_str()), m_body.length());
4545
m_decoder = std::make_shared<CborDecoder>(cursor);
4646
}
4747

48-
CborValue& CborValue::operator=(CborValue&& other)
48+
CborValue& CborValue::operator=(CborValue&& other) noexcept
4949
{
5050
if (this != &other) {
5151
m_body = std::move(other.m_body);

0 commit comments

Comments
 (0)