22 Jun
2015
22 Jun
'15
2:22 p.m.
2015-06-22 15:49 GMT+02:00 Tobias Loew
While playing around with boost::optionals I had code like the following
struct A { ... int i; ... };
boost::optional a; // do something with 'a'
// optional-projection to a::i boost::optional<int> a_i; if(a) a_i = a->i;
Could you give us an example here that would compile? boost::optional a; The above is not a valid variable declaration (template argument missing), so it is difficult for me to gather what you are trying to do. Regards, &rzej