Boost logo

Boost :

From: Joe Gottman (jgottman_at_[hidden])
Date: 2007-02-26 22:18:20


Fernando Cacciola wrote:
> Hi Joe,
>
>> I've discovered that you can't use the arrow operator with an
>> object
>> of type optional<T &>; For instance , the following code fails:
>>
>> vector<double> v;
>> optional<vector<double> &> pv(v);
>> pv->push_back(2);
>>
>> The code
>>
>> (*pv).push_back(2)
>>
>> succeeds.
>>
> Thanks for the report.
>
> I'll look into it ASAP.

Has there been any progress on fixing this problem? It would be great
if this could be fixed for version 1.34 (I definitely consider it to be
a bug).

Thanks,

Joe Gottman


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