
On 3/20/07, David Abrahams <dave@boost-consulting.com> wrote:
on Tue Mar 20 2007, "Daniel Walker" <daniel.j.walker-AT-gmail.com> wrote:
template <class Tag, class Default> aux::lazy_default<Tag, lambda::lambda_functor<Default> > operator||(keyword<Tag> const& key, lambda::lambda_functor<Default> const& default_) { return key.operator||(default_); }
The attached patch implements this. Apply with 'patch -p0 < djw_lazy_binding.patch' from the boost root directory.
Seems like a good idea. Please submit this to the SF patch tracker.
Thanks! I just submitted it to SF.
These errors happen because lazy binding ultimately depends on boost::result_of to deduce the type of the lambda expression, but boost::result_of doesn't handle lambda expressions. This issue can be resolved by applying the two patches I submitted previously.
mpl patch: http://tinyurl.com/35x5z5 utility patch: http://tinyurl.com/2h3g7n
Please submit those to the tracker, too.
Done. I also submitted a patch for Boost.Lambda per the discussions here http://tinyurl.com/yr3gc9 and here http://tinyurl.com/2jgtld. Daniel