#6364 closed Bugs (fixed)
boost::optional has bad documentation
Reported by: | Owned by: | Fernando Cacciola | |
---|---|---|---|
Milestone: | To Be Determined | Component: | optional |
Version: | Boost 1.48.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Change History (5)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 10 years ago
Replying to Bruno Martinez Aguerre <bruno.uy@…>:
Steven, maybe you can also fix the examples?
Already done. It had it's own ticket: #765
Note:
See TracTickets
for help on using tickets.
The reset methods are also deprecated, but the examples in the documentation use them.