summaryrefslogtreecommitdiff
path: root/include/gras/detail
diff options
context:
space:
mode:
Diffstat (limited to 'include/gras/detail')
-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>