This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Use of strings in new exception implementation (report libstdc++/1972)
- To: 'Benjamin Kosnik' <bkoz at redhat dot com>
- Subject: Re: Use of strings in new exception implementation (report libstdc++/1972)
- From: Greg Bumgardner <bumgard at roguewave dot com>
- Date: Wed, 14 Feb 2001 16:30:08 -0800
- Cc: "'libstdc++ at gcc dot gnu dot org'" <libstdc++ at gcc dot gnu dot org>
Do you think you'll be revisiting that code in the near future?
If you would like, I can take a swing at fixing the exceptions so they
properly copy the value of the string argument. I'm thinking that it would
be best to strdup the value of c_str() and store that in the two concrete
exceptions, so we can continue to use stringfwd for the interface.
What do you say?
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.
-g.b.