Merge pull request #590 from ColquhounAudio/release-6.x

Fix ambiguous get_pointer function
This commit is contained in:
Rob Loach 2022-02-23 08:54:10 -05:00 committed by GitHub
commit cdb8aecd40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>(param)...);
return (detail::get_pointer(o)->*f)(std::forward<Param>(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>(param)...);
return (detail::get_pointer(o)->*f)(std::forward<Param>(param)...);
};
}