Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2007-02-09 09:31:17


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.

Best

-- 
------
Fernando Cacciola
SciSoft
http://certuscode.wordpress.com
http://fcacciola.50webs.com
http://fcacciola.wordpress.com

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