From 6b1a86c37c26434442cc52d47ba554b5cb308e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Wed, 1 Oct 2014 05:20:12 -0700 Subject: fix gcc cannot call member function without object error --- include/mbgl/util/ptr.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mbgl/util/ptr.hpp b/include/mbgl/util/ptr.hpp index 5511083fc6..6e02f956f3 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*(); } -- cgit v1.2.1