copy constructor with default arguments

Posted by FredOverflow on Stack Overflow See other posts from Stack Overflow or by FredOverflow
Published on 2010-05-07T09:40:58Z Indexed on 2010/05/07 9:48 UTC
Read the original article Hit count: 201

As far as I know, the copy constructor must be of the Form T(const T&) or T(T&). What if I wanted to add default arguments to the signature?

T(const T&, double f = 1.0);

Would that be standards compliant?

© Stack Overflow or respective owner

Related posts about c++

Related posts about copy-constructor