|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54523 - sandbox/monotonic/boost/heterogenous
From: christian.schladetsch_at_[hidden]
Date: 2009-06-30 01:36:30
Author: cschladetsch
Date: 2009-06-30 01:36:29 EDT (Tue, 30 Jun 2009)
New Revision: 54523
URL: http://svn.boost.org/trac/boost/changeset/54523
Log:
added some comments
Text files modified:
sandbox/monotonic/boost/heterogenous/abstract_allocator.hpp | 3 ++-
sandbox/monotonic/boost/heterogenous/allocator.hpp | 3 +--
sandbox/monotonic/boost/heterogenous/cloneable.hpp | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
Modified: sandbox/monotonic/boost/heterogenous/abstract_allocator.hpp
==============================================================================
--- sandbox/monotonic/boost/heterogenous/abstract_allocator.hpp (original)
+++ sandbox/monotonic/boost/heterogenous/abstract_allocator.hpp 2009-06-30 01:36:29 EDT (Tue, 30 Jun 2009)
@@ -13,7 +13,8 @@
{
namespace heterogenous
{
- /// base class for (wrapped) allocators that may be used with heterogenous::common_base
+ /// base class for (wrapped) allocators to be used with heterogenous::cloneable<>
+ /// by heterogenous containers
struct abstract_allocator
{
typedef char *pointer;
Modified: sandbox/monotonic/boost/heterogenous/allocator.hpp
==============================================================================
--- sandbox/monotonic/boost/heterogenous/allocator.hpp (original)
+++ sandbox/monotonic/boost/heterogenous/allocator.hpp 2009-06-30 01:36:29 EDT (Tue, 30 Jun 2009)
@@ -30,8 +30,7 @@
template <class Base, class Alloc>
static Base* allocate_clone(const Base& object, Alloc &alloc )
{
- // calling copy_construct must be disabled at compile-time for types that are not boost::is_convertible<cloneable::base<U> *, U*>
- return object.copy_construct(object, alloc);
+ return object.make_copy(object, alloc);
}
template <class Base, class Alloc>
Modified: sandbox/monotonic/boost/heterogenous/cloneable.hpp
==============================================================================
--- sandbox/monotonic/boost/heterogenous/cloneable.hpp (original)
+++ sandbox/monotonic/boost/heterogenous/cloneable.hpp 2009-06-30 01:36:29 EDT (Tue, 30 Jun 2009)
@@ -8,7 +8,7 @@
#include <boost/aligned_storage.hpp>
#include <boost/heterogenous/detail/prefix.hpp>
-#include <boost/heterogenous/abstract_base.hpp>
+#include <boost/heterogenous/abstract_cloneable.hpp>
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