Re: [Boost-bugs] [Boost C++ Libraries] #2928: Some relational operators are not listed in synopsis

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2928: Some relational operators are not listed in synopsis
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-16 00:53:25


#2928: Some relational operators are not listed in synopsis
--------------------------------------------------------+-------------------
  Reporter: Kazutoshi Satoda <k_satoda@…> | Owner: fcacciola
      Type: Bugs | Status: new
 Milestone: Boost 1.39.0 | Component: optional
   Version: Boost 1.38.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------------------+-------------------

Comment (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.)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2928#comment:1>
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:12 UTC