Opened 11 years ago

Closed 11 years ago

#5784 closed Bugs (fixed)

fusion::pair operator>>/<< should not be templated on the stream type

Reported by: gredner@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: fusion
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

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.

Attachments (1)

stream.patch (2.1 KB ) - added by gredner@… 11 years ago.
Patch against current trunk

Download all attachments as: .zip

Change History (2)

by gredner@…, 11 years ago

Attachment: stream.patch added

Patch against current trunk

comment:1 by Joel de Guzman, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.