From f5a7c19acc0860c29c95b1ec908f1e8aadce2ad4 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 5 Jul 2016 18:27:27 +0100 Subject: [PATCH] fix invalid cast --- ostd/functional.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); } };