boost::optional<T &>::get_ptr()

23 Oct
2007
23 Oct
'07
10:49 p.m.
When was this made to NOT work? I am compiling an app against the CVS head of boost, because I want to use things like property_tree, and I don't plan on releasing my app before boost 1.35 is released anyway. But apparently, boost::optional<T&>::get_ptr() no longer works. Now instead I have to use if (myopt && &myopt.get() == &obj) instead of the terser: if (myopt.get_ptr() == &obj) I can't see anything about this in the dev list, and the docs on boost.org (which granted are for 1.34.1) still list get_ptr() as working for both optional<T> and optional<T&>. Preston
6467
Age (days ago)
6467
Last active (days ago)
0 comments
1 participants
participants (1)
-
Preston A. Elder