Boost logo

Boost :

From: Richard Peters (R.A.Peters_at_[hidden])
Date: 2002-02-12 10:54:36


----- Original Message -----
From: "Bill Seymour" <bill-at-the-office_at_[hidden]>

> Itay wrote:
> >
> > std::string s;
> > s = into_string<std::string>() << "current year: " << 2002 << ".\n";
> >
>
> - How is this better than std::ostringstream?

It looks like you can use it in this way:
void my_function(const std::string& blah);
...
my_function(into_string<std::string>() << "current year: " << 2002 << ".\n")

This doesn't work with ostringstream.

---
Richard Peters
Eindhoven University of Technology

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