Opened 13 years ago

Closed 13 years ago

#3089 closed Feature Requests (fixed)

wostream not supported by units library

Reported by: daniel.macumber@… 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 Steven Watanabe, 13 years ago

Owner: changed from Matthias Schabel to Steven Watanabe
Status: newassigned

comment:2 by Steven Watanabe, 13 years ago

Resolution: fixed
Status: assignedclosed

(In [53293]) Allow printing to wostream. Fixes #3089.

comment:3 by daniel.macumber@…, 13 years ago

Resolution: fixed
Status: closedreopened

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 Steven Watanabe, 13 years ago

Resolution: fixed
Status: reopenedclosed

(In [53577]) Allow absolute to be printed to std::wostream. Fixes #3089

Note: See TracTickets for help on using tickets.