Re: iomanip.h

Masaharu Goto (gotom@hpyiddq.jpn.hp.com)
Thu, 25 Sep 1997 10:08:08 JST


Elemer,

Will you elaborate your request? I need to know the detail of what you need.

There 2 difficulties embedding iomanip.h.

First, iomanip is based on define macro or template. These can be handled
by the interpreter, however, there is no generic way to precompile macro
or template.

Second, iomanip is using operator<< overloading for pointer to function.
Special care is needed when you use precompiled pointer to function in
interpreted code.

But, it may be possible to provide same functionality by using some trick
if I understand what you need. It can be tidious, but emulating iomanip
by special function class can provide the same thing.

Masaharu Goto

> Could you "pre-include" also iomanip.h containing useful macros
> for formatted i/o operations? (for reference see J.J.Barton, L.R.Nackman:
> Scientific Engineering C++)
> --
> ---------------------------------------------------------------------------
> | Elemer Nagy | Phone : (+33) 04-91-82-72-73 |
> | C.P.P.M. | Fax : (+33) 04-91-82-72-99 |
> | 163, av. de Luminy Case 907 | Internet : nagy@cppm.in2p3.fr |
> | F-13288 Marseille CEDEX 09 | |
> | FRANCE | |
> ---------------------------------------------------------------------------