Boost logo

Boost :

From: Preston A. Elder (prez_at_[hidden])
Date: 2007-10-23 18:49:58


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk