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: 404
        
c++
|copy-constructor
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