diff --git a/include/chaiscript/dispatchkit/bind_first.hpp b/include/chaiscript/dispatchkit/bind_first.hpp index c65c8385..7b8bfed8 100644 --- a/include/chaiscript/dispatchkit/bind_first.hpp +++ b/include/chaiscript/dispatchkit/bind_first.hpp @@ -42,7 +42,7 @@ namespace chaiscript auto bind_first(Ret (Class::*f)(Param...), O&& o) { return [f, o](Param...param) -> Ret { - return (get_pointer(o)->*f)(std::forward(param)...); + return (detail::get_pointer(o)->*f)(std::forward(param)...); }; } @@ -50,7 +50,7 @@ namespace chaiscript auto bind_first(Ret (Class::*f)(Param...) const, O&& o) { return [f, o](Param...param) -> Ret { - return (get_pointer(o)->*f)(std::forward(param)...); + return (detail::get_pointer(o)->*f)(std::forward(param)...); }; }