diff --git a/src/common/objects/dobjgc.h b/src/common/objects/dobjgc.h index de187db6c..e3f8b85b1 100644 --- a/src/common/objects/dobjgc.h +++ b/src/common/objects/dobjgc.h @@ -175,7 +175,7 @@ public: TObjPtr() = default; TObjPtr(const TObjPtr &q) = default; - TObjPtr(T q) throw() + TObjPtr(T q) noexcept : pp(q) { } @@ -207,35 +207,35 @@ public: return *this; } - T Get() throw() + T Get() noexcept { return GC::ReadBarrier(pp); } - T ForceGet() throw() //for situations where the read barrier needs to be skipped. + T ForceGet() noexcept //for situations where the read barrier needs to be skipped. { return pp; } - operator T() throw() + operator T() noexcept { return GC::ReadBarrier(pp); } - T &operator*() + T &operator*() noexcept { T q = GC::ReadBarrier(pp); assert(q != NULL); return *q; } - T operator->() throw() + T operator->() noexcept { return GC::ReadBarrier(pp); } - bool operator!=(T u) throw() + bool operator!=(T u) noexcept { return GC::ReadBarrier(o) != u; } - bool operator==(T u) throw() + bool operator==(T u) noexcept { return GC::ReadBarrier(o) == u; }