Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50103 - in sandbox/dataflow-rewrite: boost/dataflow/managed libs/dataflow/test/blueprint
From: stipe_at_[hidden]
Date: 2008-12-03 19:19:40


Author: srajko
Date: 2008-12-03 19:19:40 EST (Wed, 03 Dec 2008)
New Revision: 50103
URL: http://svn.boost.org/trac/boost/changeset/50103

Log:
network removes descriptor from map when component unregisters
Text files modified:
   sandbox/dataflow-rewrite/boost/dataflow/managed/network.hpp | 1 +
   sandbox/dataflow-rewrite/libs/dataflow/test/blueprint/test_framework_entity.cpp | 2 ++
   2 files changed, 3 insertions(+), 0 deletions(-)

Modified: sandbox/dataflow-rewrite/boost/dataflow/managed/network.hpp
==============================================================================
--- sandbox/dataflow-rewrite/boost/dataflow/managed/network.hpp (original)
+++ sandbox/dataflow-rewrite/boost/dataflow/managed/network.hpp 2008-12-03 19:19:40 EST (Wed, 03 Dec 2008)
@@ -52,6 +52,7 @@
         BOOST_ASSERT(m_descriptor_map.find(c) != m_descriptor_map.end());
         graph_type::vertex_descriptor v = m_descriptor_map[c];
         remove_vertex(v, m_graph);
+ m_descriptor_map.erase(c);
     }
     void notify_connect(component &producer, component &consumer)
     {

Modified: sandbox/dataflow-rewrite/libs/dataflow/test/blueprint/test_framework_entity.cpp
==============================================================================
--- sandbox/dataflow-rewrite/libs/dataflow/test/blueprint/test_framework_entity.cpp (original)
+++ sandbox/dataflow-rewrite/libs/dataflow/test/blueprint/test_framework_entity.cpp 2008-12-03 19:19:40 EST (Wed, 03 Dec 2008)
@@ -38,4 +38,6 @@
     
     // test copy construction
     df::blueprint::framework_entity_adapter<my_blueprint_framework_with_context, my_port_with_context> context_copy_construction(fcc, pwc);
+ // test copy construction
+ df::blueprint::framework_entity_adapter<my_blueprint_framework_with_context, my_port_with_context> context_const_copy_construction(fcc, my_port_with_context(fcc.object()));
 }


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