Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50128 - sandbox/dataflow-rewrite/boost/dataflow/blueprint
From: stipe_at_[hidden]
Date: 2008-12-05 01:52:57


Author: srajko
Date: 2008-12-05 01:52:57 EST (Fri, 05 Dec 2008)
New Revision: 50128
URL: http://svn.boost.org/trac/boost/changeset/50128

Log:
blueprint::framework_context with object can construct the object with an argument
Text files modified:
   sandbox/dataflow-rewrite/boost/dataflow/blueprint/framework_context.hpp | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: sandbox/dataflow-rewrite/boost/dataflow/blueprint/framework_context.hpp
==============================================================================
--- sandbox/dataflow-rewrite/boost/dataflow/blueprint/framework_context.hpp (original)
+++ sandbox/dataflow-rewrite/boost/dataflow/blueprint/framework_context.hpp 2008-12-05 01:52:57 EST (Fri, 05 Dec 2008)
@@ -124,6 +124,14 @@
 {
     typedef typename BlueprintFramework::framework_type::framework_context_type object_type;
 public:
+ framework_context()
+ {}
+
+ template<typename T>
+ framework_context(const T &t)
+ : m_object(t)
+ {}
+
     object_type &object()
     { return m_object; }
     const object_type &object() const


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