
9 Feb
2007
9 Feb
'07
2:31 p.m.
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