diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-10-01 05:20:12 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-10-01 05:20:12 -0700 |
commit | 6b1a86c37c26434442cc52d47ba554b5cb308e32 (patch) | |
tree | 814c0701029ab639e29a8ce9470f88a29919c946 /include | |
parent | d03b7aa31ad95827672208ab363d50666b2762b5 (diff) | |
download | qtlocation-mapboxgl-6b1a86c37c26434442cc52d47ba554b5cb308e32.tar.gz |
fix gcc cannot call member function without object error
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/util/ptr.hpp | 4 |
1 files 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<T>(::std::forward<Args>(args)...) {} - inline auto operator->() const -> decltype(::std::shared_ptr<T>::operator->()) { + inline auto operator->() const -> decltype(this->::std::shared_ptr<T>::operator->()) { assert(*this); return ::std::shared_ptr<T>::operator->(); } - inline auto operator*() const -> decltype(::std::shared_ptr<T>::operator*()) { + inline auto operator*() const -> decltype(this->::std::shared_ptr<T>::operator*()) { assert(*this); return ::std::shared_ptr<T>::operator*(); } |