ANSI C++ changes revisited

Will Schroeder will.schroeder at kitware.com
Wed Apr 26 14:22:42 EDT 2000


Hi Folks-

Remember the changes I made yesterday with regard to ANSI C++ ? Well they're already obsolete. Bill Hoffman discovered a better way to do it late last night (and thanks to the VXL code).

What we did is to create new typedefs like "typedef std::ostream vtkOstream".

What we can do instead is: "using std::ostream;"

Fortunately, all is not lost, we still retain the changes due to include files, and creation of the vtkSystemIncludes.h, etc.

The implications are as follows: instead of having PrintSelf(vtkOstream...) we have PrintSelf(ostream...) like before, except this time if ANSI C++ is turned on, ostream is really std::ostream because of the "using std::ostream'". This means code writers don't have to worry about these special types.

Much humbler I'll be checking the changes in shortly (unless someone has a good reason not to!)

Will


--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list