>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> It looks to me like you're describing formatting flags (iomanip
Angus> thingies) rather than member functions as they affect only the
Angus> next piece of input rather than everything thereafter.

You are right.

Angus> They are actually dead easy to implement. Below is the g++
Angus> implementation of 'setw' 

Urgh. You meant dead unreadable, right?

Angus> However, I don't think that we need to define a new
Angus> olatexstream with member functions unwantedligature() etc. That
Angus> would be difficult because sometimes we'd want olatexstream to
Angus> derive from ofstream, sometimes from ostringstream, etc.

I planned to use the basic stupid way of passing a ostream in the
constructor as the underlying stream.

Angus> For the way forward, see

Angus> http://www.awprofessional.com/articles/article.asp?p=171014&seqNum=2

It looks a bit like a hack, don't you think? Especially since I need
more that longs and casting all over the place is ugly. Or I could use
this long to a pointer (is this always possible) to a structure
containing my entries.

JMarc

Reply via email to