[Insight-users] void operator=(const Self&); //purposely not implemented

Vaaksiainen vaaksiainen at gmail.com
Wed Feb 13 02:34:36 EST 2013


Declared to prevent compiler-generated one, not implemented on purpose
(as explicitly stated :)

http://en.wikipedia.org/wiki/Rule_of_three_%28C++_programming%29

Best
-V

2013/2/11 Arvind Rao <arvind.sbia at gmail.com>:
> I noticed this bit code in itk filters:
>
>          void operator=(const Self&); //purposely not implemented
>
> Why isn't the operator=() implemented? I guess it wouldn't make sense to set
> a filter to the state of another--at least for the applications I've worked
> on.
>
> I seems to me that if  operator=() should be implemented, then why even
> declare this function in the header file of the filter?
>
> Thanks in advance answering!
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list