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

24 Oct
2007
24 Oct
'07
12:49 a.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
6524
Age (days ago)
6524
Last active (days ago)
0 comments
1 participants
participants (1)
-
Preston A. Elder