fix invalid cast

master
Daniel Kolesa 2016-07-05 18:27:27 +01:00
parent 826c28ab36
commit f5a7c19acc
1 changed files with 2 additions and 1 deletions

View File

@ -607,7 +607,8 @@ namespace detail {
}
static AllocatorPointer<A> &get_ptr_ref(FmStorage const &s) {
return reinterpret_cast<AllocatorPointer<A> &>(s.data);
return reinterpret_cast<AllocatorPointer<A> &>(
const_cast<FunctorData &>(s.data));
}
};