std::exception::operator=

Copy assignment operator. Assigns the contents of other.

# Declarations

exception& operator=( const exception& other ) throw();

(until C++11)

exception& operator=( const exception& other ) noexcept;

(since C++11) (constexpr since C++26)

# Parameters

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 471C++98the effects of calling what() afterassignment are implementation-definedrequired to be the same as the originalwhat() if the dynamic types are the same