Update of /cvsroot/boost/boost/boost/interprocess/smart_ptr
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30311/smart_ptr

Modified Files:
        unique_ptr.hpp weak_ptr.hpp 
Log Message:
no message

Index: unique_ptr.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/interprocess/smart_ptr/unique_ptr.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- unique_ptr.hpp      12 Jun 2007 17:07:10 -0000      1.5
+++ unique_ptr.hpp      23 Jun 2007 12:53:54 -0000      1.6
@@ -25,8 +25,9 @@
 #include <boost/compressed_pair.hpp>
 #include <boost/static_assert.hpp>
 #include <boost/interprocess/detail/mpl.hpp>
-#include <boost/type_traits.hpp>
-#include <boost/utility/enable_if.hpp>
+#include <boost/interprocess/detail/type_traits.hpp>
+//#include <boost/type_traits.hpp>
+//#include <boost/utility/enable_if.hpp>
 #include <cstddef>
 
 namespace boost{
@@ -85,8 +86,8 @@
 {
    /// @cond
    struct nat {int for_bool_;};
-   typedef typename boost::add_reference<D>::type deleter_reference;
-   typedef typename boost::add_reference<const D>::type 
deleter_const_reference;
+   typedef typename detail::add_reference<D>::type deleter_reference;
+   typedef typename detail::add_reference<const D>::type 
deleter_const_reference;
    /// @endcond
 
    public:
@@ -104,9 +105,9 @@
    {}
 
    unique_ptr(pointer p
-             ,typename if_<boost::is_reference<D>
+             ,typename detail::if_<detail::is_reference<D>
                   ,D
-                  ,typename boost::add_reference<const D>::type>::type d)
+                  ,typename detail::add_reference<const D>::type>::type d)
       : ptr_(p, d)
    {}
 /*
@@ -127,11 +128,11 @@
    template <class U, class E>
    unique_ptr(const unique_ptr<U, E>& u,
       typename boost::enable_if_c<
-            boost::is_convertible<typename unique_ptr<U, E>::pointer, 
pointer>::value &&
-            boost::is_convertible<E, D>::value &&
+            detail::is_convertible<typename unique_ptr<U, E>::pointer, 
pointer>::value &&
+            detail::is_convertible<E, D>::value &&
             (
-               !boost::is_reference<D>::value ||
-               boost::is_same<D, E>::value
+               !detail::is_reference<D>::value ||
+               detail::is_same<D, E>::value
             )
             ,
             nat
@@ -142,12 +143,12 @@
    #ifndef BOOST_INTERPROCESS_RVALUE_REFERENCE
    template <class U, class E>
    unique_ptr(const detail::moved_object<unique_ptr<U, E> >& u,
-      typename boost::enable_if_c<
-            boost::is_convertible<typename unique_ptr<U, E>::pointer, 
pointer>::value &&
-            boost::is_convertible<E, D>::value &&
+      typename detail::enable_if_c<
+            detail::is_convertible<typename unique_ptr<U, E>::pointer, 
pointer>::value &&
+            detail::is_convertible<E, D>::value &&
             (
-               !boost::is_reference<D>::value ||
-               boost::is_same<D, E>::value
+               !detail::is_reference<D>::value ||
+               detail::is_same<D, E>::value
             )
             ,
             nat
@@ -158,11 +159,11 @@
    template <class U, class E>
    unique_ptr(unique_ptr<U, E> && u,
       typename boost::enable_if_c<
-            boost::is_convertible<typename unique_ptr<U, E>::pointer, 
pointer>::value &&
-            boost::is_convertible<E, D>::value &&
+            detail::is_convertible<typename unique_ptr<U, E>::pointer, 
pointer>::value &&
+            detail::is_convertible<E, D>::value &&
             (
-               !boost::is_reference<D>::value ||
-               boost::is_same<D, E>::value
+               !detail::is_reference<D>::value ||
+               detail::is_same<D, E>::value
             )
             ,
             nat
@@ -200,7 +201,7 @@
    }
 
    // observers
-   typename boost::add_reference<T>::type operator*()  const
+   typename detail::add_reference<T>::type operator*()  const
    {  return *ptr_.first();   }
 
    pointer operator->() const
@@ -266,8 +267,8 @@
 class unique_ptr<T[], D>
 {
     struct nat {int for_bool_;};
-    typedef typename boost::add_reference<D>::type deleter_reference;
-    typedef typename boost::add_reference<const D>::type 
deleter_const_reference;
+    typedef typename detail::add_reference<D>::type deleter_reference;
+    typedef typename detail::add_reference<const D>::type 
deleter_const_reference;
 public:
     typedef T element_type;
     typedef D deleter_type;
@@ -279,7 +280,7 @@
     unique_ptr(pointer p, typename if_<
                           boost::is_reference<D>,
                           D,
-                          typename boost::add_reference<const D>::type>::type 
d)
+                          typename detail::add_reference<const D>::type>::type 
d)
         : ptr_(p, d) {}
     unique_ptr(const unique_ptr& u)
         : ptr_(const_cast<unique_ptr&>(u).release(), u.get_deleter()) {}
@@ -302,7 +303,7 @@
     }
 
     // observers
-    typename boost::add_reference<T>::type operator[](std::size_t i)  const 
{return ptr_.first()[i];}
+    typename detail::add_reference<T>::type operator[](std::size_t i)  const 
{return ptr_.first()[i];}
     pointer get()        const {return ptr_.first();}
     deleter_reference       get_deleter()       {return ptr_.second();}
     deleter_const_reference get_deleter() const {return ptr_.second();}
@@ -344,8 +345,8 @@
 class unique_ptr<T[N], D>
 {
     struct nat {int for_bool_;};
-    typedef typename boost::add_reference<D>::type deleter_reference;
-    typedef typename boost::add_reference<const D>::type 
deleter_const_reference;
+    typedef typename detail::add_reference<D>::type deleter_reference;
+    typedef typename detail::add_reference<const D>::type 
deleter_const_reference;
 public:
     typedef T element_type;
     typedef D deleter_type;
@@ -358,7 +359,7 @@
     unique_ptr(pointer p, typename if_<
                          boost::is_reference<D>,
                          D,
-                         typename boost::add_reference<const D>::type>::type d)
+                         typename detail::add_reference<const D>::type>::type 
d)
         : ptr_(p, d) {}
     unique_ptr(const unique_ptr& u)
         : ptr_(const_cast<unique_ptr&>(u).release(), u.get_deleter()) {}
@@ -381,7 +382,7 @@
     }
 
     // observers
-    typename boost::add_reference<T>::type operator[](std::size_t i)  const 
{return ptr_.first()[i];}
+    typename detail::add_reference<T>::type operator[](std::size_t i)  const 
{return ptr_.first()[i];}
     pointer get()        const {return ptr_.first();}
     deleter_reference       get_deleter()       {return ptr_.second();}
     deleter_const_reference get_deleter() const {return ptr_.second();}

Index: weak_ptr.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/interprocess/smart_ptr/weak_ptr.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- weak_ptr.hpp        12 Jun 2007 17:07:10 -0000      1.4
+++ weak_ptr.hpp        23 Jun 2007 12:53:54 -0000      1.5
@@ -32,8 +32,10 @@
    typedef weak_ptr<T, A, D> this_type;
    typedef typename detail::pointer_to_other
       <typename A::pointer, T>::type      pointer;
-   typedef typename workaround::random_it<T>::reference       reference;
-   typedef typename workaround::random_it<T>::const_reference const_reference;
+   typedef typename detail::add_reference
+                     <T>::type            reference;
+   typedef typename detail::add_reference
+                     <T>::type            const_reference;
    /// @endcond
 
    public:


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to