22 Jun
2015
22 Jun
'15
2:27 p.m.
2015-06-22 16:22 GMT+02:00 Andrzej Krzemienski
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?
Ok, you meant boost::optional<A> a; Now I see what you are talking about. Regards, &rzej