Opened 13 years ago
Closed 13 years ago
#3089 closed Feature Requests (fixed)
wostream not supported by units library
Reported by: | Owned by: | Steven Watanabe | |
---|---|---|---|
Milestone: | Boost 1.40.0 | Component: | units |
Version: | Boost 1.39.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Use of hard coded std::string in io.hpp (and other headers) of units library prevents printing units to wostream using <<.
Change History (4)
comment:1 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 13 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This patch worked but did not cover output of absolute types to wostream. In absolute.hpp we need to add something similar to:
template<class Y> std::wostream& operator<<(std::wostream& os,const absolute<Y>& aval) {
os << L"absolute " << aval.value();
return os;
}
comment:4 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
(In [53293]) Allow printing to wostream. Fixes #3089.