Boost logo

Boost :

From: Scott Woods (scottw_at_[hidden])
Date: 2003-10-01 16:00:03


Have done some manipulator stuff, nothing with Boost test
and infrequent flossing. Dont know if this is anything like
a solution but your prototype of toString seemed odd;

>
> string toString(int value, std::ios_base& (*)(std::ios_base&) manipulator)
> {
> ostringstream oss;
> oss << manipulator; // hex for example.
> cout << "value|" << value << "|" << ", toString |" << oss.str() << "|" <<
> endl; // for testing
> return oss.str();
> } // toString
>

Should it not be;

string toString(int value, std::ios_base& (* manipulator )(std::ios_base&) )

?

Cheers,
SW


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk