diff options
-rw-r--r-- | common/ptr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/ptr.h b/common/ptr.h index a9598e5914..30a61a2f5b 100644 --- a/common/ptr.h +++ b/common/ptr.h @@ -95,6 +95,9 @@ private: */ template<class T> class SharedPtr { +#if !((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95)) + template<class T2> friend class SharedPtr; +#endif public: typedef int RefValue; typedef T ValueType; |