diff --git a/system/jlib/jtrace.hpp b/system/jlib/jtrace.hpp index 7f1e7d9431b..86e2fb66115 100644 --- a/system/jlib/jtrace.hpp +++ b/system/jlib/jtrace.hpp @@ -164,11 +164,17 @@ class jlib_decl OwnedSpanScope public: OwnedSpanScope() = default; OwnedSpanScope(ISpan * _ptr); + OwnedSpanScope(const OwnedSpanScope& rhs) = delete; + OwnedSpanScope(OwnedSpanScope&& rhs) = default; ~OwnedSpanScope(); inline ISpan * operator -> () const { return span; } inline operator ISpan *() const { return span; } + inline OwnedSpanScope& operator=(ISpan * ptr) = delete; + inline OwnedSpanScope& operator=(const OwnedSpanScope& rhs) = delete; + inline OwnedSpanScope& operator=(OwnedSpanScope&& rhs) = delete; + void clear(); ISpan * query() const { return span; } void set(ISpan * _span);