[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdegraphics/ksvg/impl/libs/libtext2path/src/myboost
From:       Nikolas Zimmermann <wildfox () kde ! org>
Date:       2003-09-14 10:25:40
[Download RAW message or body]

CVS commit by wildfox: 

Fixes the shared_ptr.hpp compilation error, Ralf & Laurent reported
(gcc-2.95.4)
CCMAIL: nolden@kde.org, montel@kde.org


  M +4 -2      shared_ptr.hpp   1.2


--- kdegraphics/ksvg/impl/libs/libtext2path/src/myboost/shared_ptr.hpp  #1.1:1.2
@@ -2,5 +2,4 @@
 #define BOOST_SHARED_PTR_HPP_INCLUDED
 
-//
 //  shared_ptr.hpp
 //
@@ -268,10 +267,13 @@ public:
     }
 
+// Tasteless as this may seem, making all members public allows member templates
+// to work in the absence of member template friends. (Matthew Langston)
 
+#   if __GNUC__ >= 2 && __GNUC_MINOR__ >= 97
 private:
 
     template<class Y> friend class shared_ptr;
     template<class Y> friend class weak_ptr;
-
+#endif
 
     T * px;                     // contained pointer


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic