aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohannes Schickel2008-03-30 01:09:05 +0000
committerJohannes Schickel2008-03-30 01:09:05 +0000
commit08b54da75ecfb16e5dcc0b86aecf1171748aeac4 (patch)
treefefd58817375189d66c0b3e1e369ea265e5246bc /common
parentb3f858af2b4a9cc488b5dd9aa0722d95c9fc930c (diff)
downloadscummvm-rg350-08b54da75ecfb16e5dcc0b86aecf1171748aeac4.tar.gz
scummvm-rg350-08b54da75ecfb16e5dcc0b86aecf1171748aeac4.tar.bz2
scummvm-rg350-08b54da75ecfb16e5dcc0b86aecf1171748aeac4.zip
Readded friend statement required by standard conform compilers. Disabled for gcc 2.95 though.
svn-id: r31311
Diffstat (limited to 'common')
-rw-r--r--common/ptr.h3
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;