Rollback to r437 for bind_first implementation. The "cleaned up" version was a no-go in some cases

This commit is contained in:
Jason Turner
2009-11-08 16:28:35 +00:00
parent 1bc968e788
commit 3a37ceedb7
4 changed files with 50 additions and 70 deletions

View File

@@ -74,13 +74,13 @@ namespace chaiscript
template<typename T, typename Q>
Proxy_Function fun(T t, const Q &q)
{
return detail::fun_helper(detail::bind_first(t, q));
return detail::fun_helper(bind_first(t, q));
}
template<typename T, typename Q, typename R>
Proxy_Function fun(T t, const Q &q, const R &r)
{
return detail::fun_helper(detail::bind_first(detail::bind_first(t, q), r));
return detail::fun_helper(bind_first(bind_first(t, q), r));
}
}