|
Boost Users : |
Subject: Re: [Boost-users] Boost lambda bind and boost smart_ptr issue
From: Brian Martin (brian.tensor_at_[hidden])
Date: 2010-06-09 16:00:54
Ah - &*_1 works. Thanks.
Regards, Brian Martin
On Wed, Jun 9, 2010 at 4:00 PM, Steven Watanabe <watanabesj_at_[hidden]>wrote:
> AMDG
>
>
> 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.
>>
>>
>
> Yeah. I fixed this yesterday. There's also a possibility that
> &*_1 will work.
>
>
> Plus I would expect the dereferencing to slice off the derived bits of
>> circle and rectangle.
>>
>>
>
> It won't, because the objects will be passed by reference.
>
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> 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