diff options
author | Josh Blum | 2013-07-03 20:00:47 -0700 |
---|---|---|
committer | Josh Blum | 2013-07-03 20:00:47 -0700 |
commit | 79acbc825e5281dbdc9c0d398ff99284b7be386d (patch) | |
tree | 24247bdb3502ec1035f25141c347558463bc32c2 | |
parent | f8f7439031b92bb9e50a3c036c647f95be8bbb00 (diff) | |
download | sandhi-79acbc825e5281dbdc9c0d398ff99284b7be386d.tar.gz sandhi-79acbc825e5281dbdc9c0d398ff99284b7be386d.tar.bz2 sandhi-79acbc825e5281dbdc9c0d398ff99284b7be386d.zip |
gras: use safe as in the property interface
m--------- | PMC | 0 | ||||
m--------- | grextras | 0 | ||||
-rw-r--r-- | include/gras/detail/block.hpp | 6 |
3 files changed, 3 insertions, 3 deletions
diff --git a/PMC b/PMC -Subproject a8b63e468f1607da7f10f8a9d786595fdf6da6d +Subproject c7e1f7d370d8d472ab73843789cf9519b0e11ad diff --git a/grextras b/grextras -Subproject 4f4da5d98179514cbc937fb1f3c8141fb0f8d09 +Subproject b6d5eb07a59c7849ad50a19ff05a1570f7aea67 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<ValueType>()); + (_my_class->*_setter)(value.safe_as<ValueType>()); } PMCC get(void) @@ -88,13 +88,13 @@ inline void Block::set(const std::string &key, const ValueType &value) template <typename ValueType> inline void Block::get(const std::string &key, ValueType &value) { - value = this->_get_property(key).as<ValueType>(); + value = this->_get_property(key).safe_as<ValueType>(); } template <typename ValueType> inline ValueType Block::get(const std::string &key) { - return this->_get_property(key).as<ValueType>(); + return this->_get_property(key).safe_as<ValueType>(); } template <typename ValueType> |