Re: [Boost-bugs] [Boost C++ Libraries] #9603: boost::optional operator<< does the wrong thing

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9603: boost::optional operator<< does the wrong thing
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-18 14:38:00


#9603: boost::optional operator<< does the wrong thing
--------------------------------+-----------------------
  Reporter: a.luenser+boost@… | Owner: fcacciola
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: optional
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+-----------------------

Comment (by akrzemi1):

 The last requirement is invalid, the preceding space is used precisely to
 tell apart a valid value '--' form an invalid value. Therefore, there is a
 way of telling valid from invalid values. While it is a bit confusing, any
 adopted model would be confusing. For a detailed discussion, See here:
 [http://www.open-
 std.org/jtc1/sc22/wg21/docs/papers/2013/n3527.html#rationale.io]
 Your expectation that no output should be printed for empty optional is
 just one of the options which is not better than any other.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9603#comment:2>
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:17 UTC