Boost logo

Boost :

From: Thomas Matelich (sosedada_at_[hidden])
Date: 2000-06-27 14:10:57

Beman Dawes wrote:

> I would like to move ahead with two versions of Kevlin's stream_cast
> concept. One which throws on errors as suggested by Steve Cleary, and one
> reports errors via bool return as suggested by Ed Brey. I modified Ed's
> code so it default initializes per Kevlin's code. The intent is that the
> two argument form can be used without checking the error return when
> default behavior on errors is desired.

I've been using stream_cast/convert quite a bit lately, I think its great. I
have had one complaint and that is related to not being able to set*
(precision, width) when going to strings. The problem, of course is the
interface for doing so. In those situations where I've really needed to use
these things, I've been using format.hpp. But that requires me to create the
stringstream, yada, yada. Anyway, I just wanted to bring it up for

Also, would it be possible/logical to optimize the case where the target is a
string? I know I could just write it myself, but...



Thomas O Matelich
Senior Software Designer
Zetec, Inc.

Boost list run by bdawes at, gregod at, cpdaniel at, john at