[vtk-developers] Macro for copy constructor and operator =

Bill Lorensen bill.lorensen at gmail.com
Thu May 6 16:22:34 EDT 2010


I agree. Too many macros that hide stuff.

On Thu, May 6, 2010 at 4:03 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> There are so many macros already!  I prefer the code to be explicit.
> These two methods don't bother me, because when I write a new class, I
> start with a simple template class that already has all the VTK voodoo
> and do a search/replace to give the class the name I want.
>
>  David
>
>
> On Thu, May 6, 2010 at 1:03 PM, Arnaud Gelas
> <Arnaud_Gelas at hms.harvard.edu> wrote:
>> Hi guys,
>>
>> I was wondering about the introduction of macro to avoid writing all the
>> time
>>
>> private:
>>  vtkMyClass( const vtkMyClass& );
>>  void operator = ( const vtkMyClass& );
>>
>> Note that such a macro exists in Qt, and it is quite useful...
>>
>> What do you think about it?
>>
>> Arnaud
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>



More information about the vtk-developers mailing list