Skip to content

Commit fe803bc

Browse files
committed
Fix ambiguous get_pointer function when using ChaiScript in combination with boost
1 parent 3af55d6 commit fe803bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/chaiscript/dispatchkit/bind_first.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ namespace chaiscript
4242
auto bind_first(Ret (Class::*f)(Param...), O&& o)
4343
{
4444
return [f, o](Param...param) -> Ret {
45-
return (get_pointer(o)->*f)(std::forward<Param>(param)...);
45+
return (detail::get_pointer(o)->*f)(std::forward<Param>(param)...);
4646
};
4747
}
4848

4949
template<typename O, typename Ret, typename Class, typename ... Param>
5050
auto bind_first(Ret (Class::*f)(Param...) const, O&& o)
5151
{
5252
return [f, o](Param...param) -> Ret {
53-
return (get_pointer(o)->*f)(std::forward<Param>(param)...);
53+
return (detail::get_pointer(o)->*f)(std::forward<Param>(param)...);
5454
};
5555

5656
}

0 commit comments

Comments
 (0)