Opened 9 years ago

Closed 9 years ago

#8804 closed Tasks (invalid)

Documentation of boost::property_tree::ptree::get_child_optional() is wrong

Reported by: Wolf A. Heidrich <wolf.heidrich@…> Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:

Description

The documentation of boost::property_tree::ptree::get_child_optional() states "Get the child at the given path, or return boost::null.".

However, optional<self_type&>() is returned instead of boost::null.

Change History (1)

comment:1 by Sebastian Redl, 9 years ago

Resolution: invalid
Status: newclosed

A default-initialized optional and one initialized from boost::null are the same thing.

Note: See TracTickets for help on using tickets.