summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJosh Blum2013-07-03 20:00:47 -0700
committerJosh Blum2013-07-03 20:00:47 -0700
commit79acbc825e5281dbdc9c0d398ff99284b7be386d (patch)
tree24247bdb3502ec1035f25141c347558463bc32c2 /include
parentf8f7439031b92bb9e50a3c036c647f95be8bbb00 (diff)
downloadsandhi-79acbc825e5281dbdc9c0d398ff99284b7be386d.tar.gz
sandhi-79acbc825e5281dbdc9c0d398ff99284b7be386d.tar.bz2
sandhi-79acbc825e5281dbdc9c0d398ff99284b7be386d.zip
gras: use safe as in the property interface
Diffstat (limited to 'include')
-rw-r--r--include/gras/detail/block.hpp6
1 files changed, 3 insertions, 3 deletions
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>