| Version 1.9 Build 803
|
|
Next: The Order of Function Arguments
Up: Coding
Previous: Document Loose Ends
Provide definitions for all of the standard member functions which the
compiler would (otherwise) generate automatically: default
constructor6.16,
destructor6.17,
copy constructor, and the assignment operator. For any of
these which you really wish to disallow, declare them private, and create
minimal implementations (if any at all). For example:
...
private:
SomeClass () {;} // disable the default constructor
...
Next: The Order of Function Arguments
Up: Coding
Previous: Document Loose Ends
Contents
Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2004-08-30