Use of strings in new exception implementation (report libstd c++/1972)

Nathan Myers ncm@nospam.cantrip.org
Wed Feb 14 19:11:00 GMT 2001


On Wed, Feb 14, 2001 at 04:30:08PM -0800, Greg Bumgardner wrote:
> I'm also curious about the handling of assignment operators.  The standard
> shows that exception has an assignment operator, even though it has nothing
> to assign, but none of the derived classes have them.  If we don't design
> these classes to correctly support assignment, then the operator should
> probably be declared private.

The standard mentions assignment and copy ctor when it has something
to say about their semantics.  The assumption (as documented in 
chapter 17) is that if you do something under the hood that would
make the compiler-generated version do the wrong thing, it's your 
responsibility (as implementor) to cover up by defining one that 
works right.

Nathan Myers
ncm at cantrip dot org



More information about the Libstdc++ mailing list