Subject: [Boost-bugs] [Boost C++ Libraries] #6364: boost::optional has bad documentation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-07 01:12:41
#6364: boost::optional has bad documentation
---------------------------------------------------+------------------------
Reporter: Ben Longbons <b.r.longbons@â¦> | Owner: fcacciola
Type: Bugs | Status: new
Milestone: To Be Determined | Component: optional
Version: Boost 1.48.0 | Severity: Problem
Keywords: |
---------------------------------------------------+------------------------
boost::optional's documentation says that operator unspecified_bool_type
is equivalent to (get() != 0), when in fact it is equivalent to (get_ptr()
!= 0)
Also, since is_initialized() is deprecated, it should indicated to use
operator unspecified_bool_type() instead.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6364> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC