
1 Dec
2014
1 Dec
'14
12:02 p.m.
On Thu, Nov 27, 2014 at 11:12 PM, Marcel Raad
And I (perhaps mis-?)use it in configuration code to represent a default value so that I don't have to have an extra variable for each map:
Hmm, an extra var seems simpler then optional keys.
auto it = map.find(whatever); if(it != map.end()) return *it;
return i->second?
else return map[boost::none];
-- Olaf