Ah - &*_1 works. Thanks.
Regards, Brian Martin
AMDGYeah. I fixed this yesterday. There's also a possibility that
Brian Martin wrote:
Thanx for the reply.
If by dereferencing the pointer you mean
for_each(shapes.begin(), shapes.end(), bind(&shape::draw, *_1, 2));
then I get another error - cannot instantiate abstract class.
&*_1 will work.It won't, because the objects will be passed by reference.
Plus I would expect the dereferencing to slice off the derived bits of
circle and rectangle.
In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users