Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80407 - trunk/boost/graph/detail
From: jewillco_at_[hidden]
Date: 2012-09-05 11:19:59


Author: jewillco
Date: 2012-09-05 11:19:59 EDT (Wed, 05 Sep 2012)
New Revision: 80407
URL: http://svn.boost.org/trac/boost/changeset/80407

Log:
Added warning about copying
Text files modified:
   trunk/boost/graph/detail/d_ary_heap.hpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: trunk/boost/graph/detail/d_ary_heap.hpp
==============================================================================
--- trunk/boost/graph/detail/d_ary_heap.hpp (original)
+++ trunk/boost/graph/detail/d_ary_heap.hpp 2012-09-05 11:19:59 EDT (Wed, 05 Sep 2012)
@@ -20,6 +20,11 @@
 #include <boost/shared_array.hpp>
 #include <boost/property_map/property_map.hpp>
 
+// WARNING: it is not safe to copy a d_ary_heap_indirect and then modify one of
+// the copies. The class is required to be copyable so it can be passed around
+// (without move support from C++11), but it deep-copies the heap contents yet
+// shallow-copies the index_in_heap_map.
+
 namespace boost {
 
   // Swap two elements in a property map without assuming they model


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