Last change
on this file since 3753 was 2322, checked in by cmv, 23 years ago |
- passage xxstream.h en xxstream
- compile avec gcc_3.2, gcc_2.96 et cxx
En 3.2 le seek from ::end semble marcher (voir Eval/COS/pbseekios.cc)
rz+cmv 11/2/2003
|
File size:
496 bytes
|
Rev | Line | |
---|
[268] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 | // Gestion d impression des complex sur les streams
|
---|
| 3 | // C.Magneville 04/99
|
---|
| 4 | // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA
|
---|
| 5 |
|
---|
| 6 | #ifndef COMPLEXIOS_H
|
---|
| 7 | #define COMPLEXIOS_H
|
---|
| 8 |
|
---|
| 9 | #include "machdefs.h"
|
---|
[2322] | 10 | #include <iostream>
|
---|
[268] | 11 |
|
---|
| 12 | #if defined(NO_IOS_COMPLEX)
|
---|
| 13 | template<class T>
|
---|
| 14 | inline ostream& operator << (ostream& os, const complex<T>& c)
|
---|
| 15 | {os<<"("<<c.real()<<","<<c.imag()<<")"; return os;}
|
---|
| 16 | #endif
|
---|
| 17 |
|
---|
| 18 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.