diff --git a/include/mbgl/util/ptr.hpp b/include/mbgl/util/ptr.hpp index 5511083fc..6e02f956f 100644 --- a/include/mbgl/util/ptr.hpp +++ b/include/mbgl/util/ptr.hpp @@ -14,11 +14,11 @@ public: inline ptr(Args &&... args) : ::std::shared_ptr(::std::forward(args)...) {} - inline auto operator->() const -> decltype(::std::shared_ptr::operator->()) { + inline auto operator->() const -> decltype(this->::std::shared_ptr::operator->()) { assert(*this); return ::std::shared_ptr::operator->(); } - inline auto operator*() const -> decltype(::std::shared_ptr::operator*()) { + inline auto operator*() const -> decltype(this->::std::shared_ptr::operator*()) { assert(*this); return ::std::shared_ptr::operator*(); }