|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55653 - sandbox/fmhess/boost/generic_ptr
From: fmhess_at_[hidden]
Date: 2009-08-18 13:20:18
Author: fmhess
Date: 2009-08-18 13:20:17 EDT (Tue, 18 Aug 2009)
New Revision: 55653
URL: http://svn.boost.org/trac/boost/changeset/55653
Log:
std::unique_ptr has 2 template parameters.
Text files modified:
sandbox/fmhess/boost/generic_ptr/pointer_traits.hpp | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
Modified: sandbox/fmhess/boost/generic_ptr/pointer_traits.hpp
==============================================================================
--- sandbox/fmhess/boost/generic_ptr/pointer_traits.hpp (original)
+++ sandbox/fmhess/boost/generic_ptr/pointer_traits.hpp 2009-08-18 13:20:17 EDT (Tue, 18 Aug 2009)
@@ -24,7 +24,7 @@
namespace std
{
template<typename T> class shared_ptr;
- template<typename T> class unique_ptr;
+ template<typename T, typename D> class unique_ptr;
}
namespace boost
@@ -108,8 +108,8 @@
{
return p.get();
}
- template<typename T>
- T* get_pointer(const std::unique_ptr<T> &p)
+ template<typename T, typename D>
+ T* get_pointer(const std::unique_ptr<T, D> &p)
{
return p.get();
}
@@ -186,13 +186,13 @@
{
typedef std::shared_ptr<ValueType> other;
};
- template<typename T> struct pointer_traits<std::unique_ptr<T> > :
+ template<typename T, typename D> struct pointer_traits<std::unique_ptr<T, D> > :
public detail::value_templated_ptr_pointer_traits<T>
{};
- template<typename T, typename ValueType>
- struct rebind<std::unique_ptr<T>, ValueType>
+ template<typename T, typename D, typename ValueType>
+ struct rebind<std::unique_ptr<T, D>, ValueType>
{
- typedef std::unique_ptr<ValueType> other;
+ typedef std::unique_ptr<ValueType, D> other;
};
} // namespace generic_ptr
} // namespace boost
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