Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55281 - sandbox/fmhess/boost/generic_ptr
From: fmhess_at_[hidden]
Date: 2009-07-30 14:45:16


Author: fmhess
Date: 2009-07-30 10:32:56 EDT (Thu, 30 Jul 2009)
New Revision: 55281
URL: http://svn.boost.org/trac/boost/changeset/55281

Log:
Fixed some compile errors with casts.

Text files modified:
   sandbox/fmhess/boost/generic_ptr/intrusive.hpp | 6 +++---
   sandbox/fmhess/boost/generic_ptr/monitor.hpp | 6 +++---
   2 files changed, 6 insertions(+), 6 deletions(-)

Modified: sandbox/fmhess/boost/generic_ptr/intrusive.hpp
==============================================================================
--- sandbox/fmhess/boost/generic_ptr/intrusive.hpp (original)
+++ sandbox/fmhess/boost/generic_ptr/intrusive.hpp 2009-07-30 10:32:56 EDT (Thu, 30 Jul 2009)
@@ -243,7 +243,7 @@
     return p.get();
 }
 
-template<class ToValueType, class U> intrusive<T> static_pointer_cast
+template<class ToValueType, class U> intrusive<ToValueType> static_pointer_cast
 (
   intrusive<U> const & p,
   mpl::identity<ToValueType> to_type_iden = mpl::identity<ToValueType>()
@@ -252,7 +252,7 @@
     return static_pointer_cast(p.get(), to_type_iden);
 }
 
-template<class ToValueType, class U> intrusive<T> const_pointer_cast
+template<class ToValueType, class U> intrusive<ToValueType> const_pointer_cast
 (
   intrusive<U> const & p,
   mpl::identity<ToValueType> to_type_iden = mpl::identity<ToValueType>()
@@ -261,7 +261,7 @@
     return const_pointer_cast(p.get(), to_type_iden);
 }
 
-template<class ToValueType, class U> intrusive<T> dynamic_pointer_cast
+template<class ToValueType, class U> intrusive<ToValueType> dynamic_pointer_cast
 (
   intrusive<U> const & p,
   mpl::identity<ToValueType> to_type_iden = mpl::identity<ToValueType>()

Modified: sandbox/fmhess/boost/generic_ptr/monitor.hpp
==============================================================================
--- sandbox/fmhess/boost/generic_ptr/monitor.hpp (original)
+++ sandbox/fmhess/boost/generic_ptr/monitor.hpp 2009-07-30 10:32:56 EDT (Thu, 30 Jul 2009)
@@ -142,7 +142,7 @@
 
     // casts
     template<typename ToValueType, typename U, typename Mutex>
- monitor<T, Mutex> static_pointer_cast
+ monitor<ToValueType, Mutex> static_pointer_cast
     (
       monitor<U, Mutex> const & p,
       mpl::identity<ToValueType> to_type_iden = mpl::identity<ToValueType>()
@@ -151,7 +151,7 @@
         return static_pointer_cast(p.get(), to_type_iden);
     }
     template<typename ToValueType, typename U, typename Mutex>
- monitor<T, Mutex> const_pointer_cast
+ monitor<ToValueType, Mutex> const_pointer_cast
     (
       monitor<U, Mutex> const & p,
       mpl::identity<ToValueType> to_type_iden = mpl::identity<ToValueType>()
@@ -160,7 +160,7 @@
         return const_pointer_cast(p.get(), to_type_iden);
     }
     template<typename ToValueType, typename U, typename Mutex>
- monitor<T, Mutex> dynamic_pointer_cast
+ monitor<ToValueType, Mutex> dynamic_pointer_cast
     (
       monitor<U, Mutex> const & p,
       mpl::identity<ToValueType> to_type_iden = mpl::identity<ToValueType>()


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk