diff --git a/ostd/functional.hh b/ostd/functional.hh index acd430f..0914e1f 100644 --- a/ostd/functional.hh +++ b/ostd/functional.hh @@ -607,7 +607,8 @@ namespace detail { } static AllocatorPointer &get_ptr_ref(FmStorage const &s) { - return reinterpret_cast &>(s.data); + return reinterpret_cast &>( + const_cast(s.data)); } };