Boost logo

Boost :

Subject: Re: [boost] Review Request : Boost.Range Extension
From: Akira Takahashi (faithandbrave_at_[hidden])
Date: 2012-06-02 01:12:45


2012/6/1 Michel Morin <mimomorin_at_[hidden]>:
> Akira Takahashi wrote:
>> Features:
> <snip>
>> - Extensions for using Lambda (regular function, regular operator)
> <snip>
>
> I took a look at the implementation of `regular` and found that
> it is implemented using `shared_pointer`.
>
> What are the pros and cons of the `shared_pointer`-based implementation
> compared to an obvious `optional`-based implementation?

This is mistake implementation.
I fixed implementation, boost::shared_ptr to boost::optional.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk