diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/block_props.cpp | 8 | ||||
-rw-r--r-- | lib/gras_impl/block_actor.hpp | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/block_props.cpp b/lib/block_props.cpp index d799805..f32dc69 100644 --- a/lib/block_props.cpp +++ b/lib/block_props.cpp @@ -97,14 +97,14 @@ static PMCC prop_access_dispatcher(ActorType &actor, const std::string &key, con return receiver.message.value; } -void Block::_register_getter(const std::string &key, PMCC pr) +void Block::_register_getter(const std::string &key, void *pr) { - (*this)->block->getter_registry[key] = pr.as<PropertyRegistrySptr>(); + (*this)->block->getter_registry[key].reset(reinterpret_cast<PropertyRegistry *>(pr)); } -void Block::_register_setter(const std::string &key, PMCC pr) +void Block::_register_setter(const std::string &key, void *pr) { - (*this)->block->setter_registry[key] = pr.as<PropertyRegistrySptr>(); + (*this)->block->setter_registry[key].reset(reinterpret_cast<PropertyRegistry *>(pr)); } void Block::_set_property(const std::string &key, const PMCC &value) diff --git a/lib/gras_impl/block_actor.hpp b/lib/gras_impl/block_actor.hpp index 170ee1f..bc4ecdd 100644 --- a/lib/gras_impl/block_actor.hpp +++ b/lib/gras_impl/block_actor.hpp @@ -23,6 +23,8 @@ namespace gras { +typedef boost::shared_ptr<PropertyRegistry> PropertyRegistrySptr; + struct BlockActor : Apology::Worker { BlockActor(void); |