std::string x(x);

Posted by FredOverflow on Stack Overflow See other posts from Stack Overflow or by FredOverflow
Published on 2010-03-27T11:37:53Z Indexed on 2010/03/27 11:43 UTC
Read the original article Hit count: 362

Filed under:
|
std::string x(x);

This crashes very badly on my compiler. Does this mean I should test for this != &that in my own copy constructors, or can I assume that no client will ever be so stupid?

© Stack Overflow or respective owner

Related posts about c++

Related posts about copy-constructor