$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Darin Adler (darin_at_[hidden])
Date: 2000-03-23 20:08:22
This makes the header a little more robust. Now it can handle the case where
there's something named "boost" in namespace std:
--- old_smart_ptr.hpp    Thu Mar 23 17:05:27 2000
+++ smart_ptr.hpp    Thu Mar 23 17:05:21 2000
@@ -329,11 +329,11 @@
 // a temporary and uses assignment.
 
 template<typename T>
-  inline void swap(boost::shared_ptr<T>& a, boost::shared_ptr<T>& b)
+  inline void swap(::boost::shared_ptr<T>& a, ::boost::shared_ptr<T>& b)
     { a.swap(b); }
 
 template<typename T>
-  inline void swap(boost::shared_array<T>& a, boost::shared_array<T>& b)
+  inline void swap(::boost::shared_array<T>& a, ::boost::shared_array<T>&
b)
     { a.swap(b); }
 
 // Specialize std::less so we can use shared pointers and arrays as keys in
@@ -343,20 +343,20 @@
 // a full range of comparison operators (<, >, <=, >=).
 
 template<typename T>
-  struct less< boost::shared_ptr<T> >
-    : binary_function<boost::shared_ptr<T>, boost::shared_ptr<T>, bool>
+  struct less< ::boost::shared_ptr<T> >
+    : binary_function<::boost::shared_ptr<T>, vboost::shared_ptr<T>, bool>
   {
-    bool operator()(const boost::shared_ptr<T>& a,
-        const boost::shared_ptr<T>& b) const
+    bool operator()(const ::boost::shared_ptr<T>& a,
+        const ::boost::shared_ptr<T>& b) const
       { return less<T*>()(a.get(),b.get()); }
   };
 
 template<typename T>
-  struct less< boost::shared_array<T> >
-    : binary_function<boost::shared_array<T>, boost::shared_array<T>, bool>
+  struct less< ::boost::shared_array<T> >
+    : binary_function<::boost::shared_array<T>,
+        ::boost::shared_array<T>, bool>
   {
-    bool operator()(const boost::shared_array<T>& a,
-        const boost::shared_array<T>& b) const
+    bool operator()(const ::boost::shared_array<T>& a,
+        const ::boost::shared_array<T>& b) const
       { return less<T*>()(a.get(),b.get()); }
   };
 
    -- Darin