Opened 11 years ago

Closed 11 years ago

#5716 closed Feature Requests (fixed)

Support streaming boost::spirit::info to basic_ostream<wchar_t>

Reported by: mlang@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

boost::spirit::info can currently only be streamed to ostream. However, since my code needs to report errors/warnings to std::werr, I need a way to stream boost::spirit::info to wostream to be able to print the failing rule name.

Attachments (2)

winfo.cpp (1.7 KB ) - added by mlang@… 11 years ago.
A simple test case demonstrating the problem.
spirit_wide_what.patch (1.2 KB ) - added by mlang@… 11 years ago.
Proposed patch to use locale::conv::utf_to_utf to support streaming to ostream with char_type other then char.

Download all attachments as: .zip

Change History (3)

by mlang@…, 11 years ago

Attachment: winfo.cpp added

A simple test case demonstrating the problem.

by mlang@…, 11 years ago

Attachment: spirit_wide_what.patch added

Proposed patch to use locale::conv::utf_to_utf to support streaming to ostream with char_type other then char.

comment:1 by Joel de Guzman, 11 years ago

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