This commit is contained in:
Michael Davidsaver
2020-03-02 18:53:20 -08:00
parent 44331decf9
commit bc8ecae8a0
+1 -1
View File
@@ -458,7 +458,7 @@ public:
//! If possible, this value is cast to T and passed as the only argument
//! of the provided function.
template<typename T, typename FN>
void as(FN&& fn) {
void as(FN&& fn) const {
typedef impl::StorageMap<typename std::decay<T>::type> map_t;
typename map_t::store_t val;
if(tryCopyOut(&val, map_t::code)) {