mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-02-08 10:46:59 +08:00
Fix ambiguous get_pointer function when using ChaiScript in combination with boost
This commit is contained in:
parent
3af55d60f2
commit
fe803bcf49
@ -42,7 +42,7 @@ namespace chaiscript
|
|||||||
auto bind_first(Ret (Class::*f)(Param...), O&& o)
|
auto bind_first(Ret (Class::*f)(Param...), O&& o)
|
||||||
{
|
{
|
||||||
return [f, o](Param...param) -> Ret {
|
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)
|
auto bind_first(Ret (Class::*f)(Param...) const, O&& o)
|
||||||
{
|
{
|
||||||
return [f, o](Param...param) -> Ret {
|
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)...);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user