[vtk-developers] (Another) bug in MS Visual Studio

Lorensen, William E (Research) lorensen at crd.ge.com
Thu May 30 12:13:05 EDT 2002


In fact the sun wspro compiler gives a warning if you don't make it const.


-----Original Message-----
From: Andy Cedilnik [mailto:andy.cedilnik at kitware.com]
Sent: Thursday, May 30, 2002 9:33 AM
To: Lisa Sobierajski Avila
Cc: vtk-developers
Subject: Re: [vtk-developers] (Another) bug in MS Visual Studio


On Wed, 2002-05-29 at 22:52, Lisa Sobierajski Avila wrote:
> Actually, if you said 1 you are right - because you have your test 
> backwards! :-)

What do you mean my test is backwards?
It will return 1 (fail) on broken compilers.

> I think the problem is that string literals are of type char * even though 
> they can't be modified....

Well that does not make sense does it?
If you cannot modify it, then it is (should be) const char*.

			Andy

_______________________________________________
vtk-developers mailing list
vtk-developers at public.kitware.com
http://public.kitware.com/mailman/listinfo/vtk-developers



More information about the vtk-developers mailing list