[vtk-developers] Unique PIMPL class names
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Thu Jan 9 21:47:23 EST 2003
>>>>> "AC" == Andy Cedilnik <andy.cedilnik at kitware.com> writes:
AC> Hi All, Recent bug in our code prompted me to the problem
AC> which appears in several VTK classes. The problem is this:
[snip]
AC> All internally used classes have to have a name with the
AC> prefix of the VTK class that is using it. For example if class
AC> vtkFoo needs a helper class Bar, the helper classes name
AC> should be vtkFooBar and not vtkBar.
How about defining a namespace (called vtkFoo_ or something) inside
the .cxx file and then using that? Do namespaces work under all
supported platforms?
cheers,
prabhu
More information about the vtk-developers
mailing list