
1 Mar
2007
1 Mar
'07
9:39 p.m.
Joe Gottman wrote:
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).
Sorry for the long delay. I just commited the fix to RC_1_34_0, just right on time before the code freeze tonight. Best -- ------ Fernando Cacciola SciSoft http://certuscode.wordpress.com http://fcacciola.50webs.com http://fcacciola.wordpress.com