operator overloading for streams
José A. Romero M.
cs001389 at siu.buap.mx
Thu Jan 27 17:16:27 EST 2000
You need to include the header, I guess:
#include <iostream>
or
#include <iostream.h>
I do not remember well.
Good luck!
----- Original Message -----
From: "Adrian Anner" <a.anner at medres.ch>
To: "vtk" <vtkusers at gsao.med.ge.com>
Sent: Wednesday, January 26, 2000 5:56 AM
Subject: operator overloading for streams
> hi
> I'm using a C++ matrix template class to do some matrix calculations. It
> uses operator overloading to read/write a matrix from/to input/output
stream
> as per standard C++ operator :
>
> MAT_TEMPLATE istream& operator >> (istream& istrm, matrixT& m);
> MAT_TEMPLATE ostream& operator << (ostream &ostrm, const matrixT& m);
>
> If I include a vtk-file and this matrix-file i get a couple of the
> following errors :
>
> C:\Programme\DevStudio\MyProjects\ex\matrix/matrix.h(242) : error C2872:
> 'ostream' : Mehrdeutiges Symbol
> C:\Programme\DevStudio\MyProjects\ex\matrix/matrix.h(343) : error C2872:
> 'istream' : Mehrdeutiges Symbol
>
> How you can see I'm using MS VC 5.0
>
> thanks for all your help
>
> Adrian
>
>
>
> --------------------------------------------------------------------------
---
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>. For help, send message body containing
> "info vtkusers" to the same address. Live long and prosper.
> --------------------------------------------------------------------------
---
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list