This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: C++11 const char * constructor overloads for exceptions
- From: Benjamin De Kosnik <bkoz at redhat dot com>
- To: Ed Smith-Rowland <3dw4rd at verizon dot net>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 15 Oct 2012 19:23:02 -0700
- Subject: Re: C++11 const char * constructor overloads for exceptions
- References: <5078FC6E.6060807@verizon.net>
> This little patch adds the C++11 const char * constructor overloads
> for exceptions.
Seems like a good idea...
but, pick one:
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
+ explicit logic_error(const char* __arg)
+ : logic_error(string(__arg)) { }
+#endif
or
+
+ # const char* ctors.
+ _ZNSt11logic_errorC1EPKc;
+ _ZNSt11logic_errorC2EPKc;
Ie, this should not need to be both exported and inlined.
Might as well inline it, and not export it.
-benjamin