Modify

Opened 9 years ago

Last modified 5 years ago

#2928 new Bugs

Some relational operators are not listed in synopsis

Reported by: Kazutoshi Satoda <k_satoda@…> Owned by: Fernando Cacciola
Milestone: Boost 1.39.0 Component: optional
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

Direct comparison between optional<T> and T has been supported since Boost 1.34. But such operators are not listed in synopsis in the latest docs.

They were added to optional.html in r37126. But they seems to have been missed in r43247.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by Steven Watanabe

I'm not very happy about the current implementation of these operators:

bool operator<(optional<T> const&, T const&);

Notes: calls T::T(const T&)

relational operators really have no need to make copies.

Also, it fails to match if T is a reference.

I don't want to write documentation for these functions until these detail are pinned down (either determining that this behavior is, in fact, correct, or fixing it.)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Fernando Cacciola.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.