In the program below, I expected the proto::lazy transform to call the
times2() function, but it doesn't. It does work correctly if you substitute
times2<int> for proto::_state. Is this a bug or am I forgetting something?
Thanks,
Dave Jenkins
#include <iostream>
#include
Dave Jenkins wrote:
In the program below, I expected the proto::lazy transform to call the times2() function, but it doesn't. It does work correctly if you substitute times2<int> for proto::_state. Is this a bug or am I forgetting something?
A bug. It's fixed now on the trunk and release branches. Thanks. -- Eric Niebler BoostPro Computing http://www.boostpro.com
A bug. It's fixed now on the trunk and release branches. Thanks.
Thank you, Eric. That works, but now proto::lazy isn't working with
proto::fold.
Below is a program you posted to boost.devel on 3/29/2008, updated with
s/bind/lazy/ and s/_arg/_child/. It's giving me the following syntax error.
Any idea what's wrong?
Thanks,
Dave Jenkins
error C2664: 'Accumulator
Dave Jenkins wrote:
A bug. It's fixed now on the trunk and release branches. Thanks.
Thank you, Eric. That works, but now proto::lazy isn't working with proto::fold.
Below is a program you posted to boost.devel on 3/29/2008, updated with s/bind/lazy/ and s/_arg/_child/. It's giving me the following syntax error. Any idea what's wrong?
Yes, the new code is actually correct, but it requires you to correctly
handle references in your function object. Just add the following
result<> specializations to the Accumulator<> class template:
template
participants (3)
-
Dave Jenkins
-
Eric Niebler
-
Eric Niebler