|
Boost Users : |
From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2006-02-17 18:24:52
Thanks. but when I do that, I get a compile error saying
PageBreaker.cpp:189: instantiated from here
A.h:268: error: 'A::A(const A&)' is private
Why boost is trying to make a copy of A (a vector is a list of A*).
And how can I fix that without making A constructor public?
Thank you.
On 17 Feb 2006 11:23:00 +0000, Jens Theisen <jth01_at_[hidden]> wrote:
> Meryl wrote:
>
> > for_each (aVector;.begin(), aVector;.end(), bind (&myFunc, _1)); //
>
> for_each( aVector.begin(), aVector.end(), bind(&myFunc, *_1) );
>
> But that's boost::lambda rather than boost::bind.
>
> Jens
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net