[Insight-developers] private constructor with argument Self

Stephen R. Aylward aylward at unc.edu
Thu Mar 3 15:22:32 EST 2005


Hi,

Question: When do I implement a private contructor that takes a const 
reference to self as an argument?

e.g.,

Class foo
  {
  public:
    stuff...
  private:
    foo(const Self &);
    void operator=(const Self &);
  }

Sometimes these functions are implemented in itk classes....sometimes 
not.   I thought I knew the answer...but...I guess I am 
wrong...Specifically, in ITK it doesn't appear to depend on whether or 
not there are local vars in the class...   I couldn't find anything on 
our web pages or in the software guide...

Thanks,
Stephen
-- 
===========================================================
Dr. Stephen R. Aylward
Associate Professor of Radiology
Adjunct Associate Professor of Computer Science and Surgery
http://caddlab.rad.unc.edu
aylward at unc.edu
(919) 966-9695



More information about the Insight-developers mailing list