diff --git a/src/pvxs/data.h b/src/pvxs/data.h index 84c425f..dfe01d2 100644 --- a/src/pvxs/data.h +++ b/src/pvxs/data.h @@ -458,7 +458,7 @@ public: //! If possible, this value is cast to T and passed as the only argument //! of the provided function. template - void as(FN&& fn) { + void as(FN&& fn) const { typedef impl::StorageMap::type> map_t; typename map_t::store_t val; if(tryCopyOut(&val, map_t::code)) {