[Boost-bugs] [Boost C++ Libraries] #5784: fusion::pair operator>>/<< should not be templated on the stream type

Subject: [Boost-bugs] [Boost C++ Libraries] #5784: fusion::pair operator>>/<< should not be templated on the stream type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-15 02:29:34


#5784: fusion::pair operator>>/<< should not be templated on the stream type
-------------------------------+--------------------------------------------
 Reporter: gredner@… | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: fusion
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
-------------------------------+--------------------------------------------
 The operator<< and operator>> defined to work with fusion::pair are
 templated on the stream type. Unfortunately, this triggers bug 5783 which
 prevents lexical_cast from working with fusion::pair.

 I believe this is legitimately a bug in lexical_cast, but it has a trivial
 workaround in fusion - stop templating these operators on the stream type.
 The stream operators for pair and unused both template on the stream type,
 but the stream operators for sequences do not, and I see no reason for the
 difference.

 A patch is attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5784>
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:07 UTC