Sunday, December 20, 2009

C++98: Copy Constructors

A copy constructor of the following form is illegal in C++: A::A(A).The argument should be const A &.
Reference: C++ Strategies and Tactics by Robert B. Murray, Addison-Wesley, 1993., p. 60.

No comments:

Post a Comment