Upcoming changes to vtk3.0
Ron Inbar
rinbar at netvision.net.il
Sun Jul 25 05:28:59 EDT 1999
Hello Jan!
I think in C++ you can "cast away the const", for example:
void f(char *s)
{
// ...
}
void main()
{
const char message[]= "The quick brown fox jumps over the lazy dog";
f(message); // Error: cannot convert const char * into char *
f((char *) message); // OK
}
Of course this is dirty, but it's still cleaner than strcpy...
Regards,
Ron
----- Original Message -----
From: Jan Ehrhardt <ehrhardt at medinf.mu-luebeck.de>
To: <vtkusers at gsao.med.ge.com>
Cc: <will.schroeder at kitware.com>
Sent: יום חמישי 22 יולי 1999 09:36
Subject: RE: Upcoming changes to vtk3.0
>
> Hi,
>
> it´s a good idea to look into the 'const consistency'. It´s really
> stupid to do everytime a strcpy if I do SetFileName....
-----------------------------------------------------------------------------
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