Opened 10 years ago
Last modified 9 years ago
#7187 new Feature Requests
boost::rational doesn't provide stream operators for wide streams
Reported by: | Owned by: | Jonathan Turkanis | |
---|---|---|---|
Milestone: | To Be Determined | Component: | rational |
Version: | Boost 1.51.0 | Severity: | Problem |
Keywords: | Cc: |
Description
There are std::istream& operator>> (std::istream& is, rational<IntType>& r)
and std::ostream& operator<< (std::ostream& os, const rational<IntType>& r)
, but no wide stream versions.
Attachments (1)
Change History (4)
by , 10 years ago
Attachment: | rational-wide-streams.patch added |
---|
comment:1 by , 10 years ago
Actually it also would be worth to figure out why std::wostringstream
accepts the << operator without this patch applied. Appears like some unsafe typecast taking place.
comment:2 by , 10 years ago
Component: | None → rational |
---|---|
Owner: | set to |
Type: | Bugs → Feature Requests |
Note:
See TracTickets
for help on using tickets.
One possible patch