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: | 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)
Change History (2)
by , 11 years ago
Attachment: | stream.patch added |
---|
comment:1 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch against current trunk