diff --git a/api/include/opentelemetry/context/context.h b/api/include/opentelemetry/context/context.h index 59dcd8cb1..4d3384e28 100644 --- a/api/include/opentelemetry/context/context.h +++ b/api/include/opentelemetry/context/context.h @@ -140,7 +140,7 @@ private: next_ = nostd::shared_ptr{nullptr}; } - DataList &operator=(DataList &&other) + DataList &operator=(DataList &&other) noexcept { key_length_ = other.key_length_; value_ = std::move(other.value_); diff --git a/api/include/opentelemetry/context/runtime_context.h b/api/include/opentelemetry/context/runtime_context.h index 36ed7cc3c..d9c5b0f7b 100644 --- a/api/include/opentelemetry/context/runtime_context.h +++ b/api/include/opentelemetry/context/runtime_context.h @@ -58,6 +58,8 @@ public: */ virtual bool Detach(Token &token) noexcept = 0; + virtual ~RuntimeContextStorage(){}; + protected: nostd::unique_ptr CreateToken(const Context &context) noexcept {