From 79acbc825e5281dbdc9c0d398ff99284b7be386d Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 3 Jul 2013 20:00:47 -0700 Subject: gras: use safe as in the property interface --- include/gras/detail/block.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/gras') diff --git a/include/gras/detail/block.hpp b/include/gras/detail/block.hpp index 3c85905..9dccb22 100644 --- a/include/gras/detail/block.hpp +++ b/include/gras/detail/block.hpp @@ -34,7 +34,7 @@ public: void set(const PMCC &value) { - (_my_class->*_setter)(value.as()); + (_my_class->*_setter)(value.safe_as()); } PMCC get(void) @@ -88,13 +88,13 @@ inline void Block::set(const std::string &key, const ValueType &value) template inline void Block::get(const std::string &key, ValueType &value) { - value = this->_get_property(key).as(); + value = this->_get_property(key).safe_as(); } template inline ValueType Block::get(const std::string &key) { - return this->_get_property(key).as(); + return this->_get_property(key).safe_as(); } template -- cgit