(nw) fixed compile error on gcc 5.3 . Apologies in advance if it breaks other compilers/versions.

This commit is contained in:
Robbbert 2019-10-16 16:10:42 +11:00
parent c84d76c37d
commit 68db9fd99a

View File

@ -179,7 +179,7 @@ namespace plib {
inline R call(O *obj, Targs... args) const noexcept(true)
{
using function_ptr = R (O::*)(Targs...);
function_ptr t = *reinterpret_cast<function_ptr *>(&m_func);
function_ptr t = *reinterpret_cast<const function_ptr *>(&m_func);
return (obj->*t)(std::forward<Targs>(args)...);
}
bool is_set() const {