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: | 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.
Note:
See TracTickets
for help on using tickets.
A default-initialized optional and one initialized from boost::null are the same thing.