This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Regex instantiation
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: Tim Shen <timshen91 at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 9 Jan 2014 07:45:57 +0100 (CET)
- Subject: Re: Regex instantiation
- Authentication-results: sourceware.org; auth=none
- References: <CAPrifDnbuYcMBSwZChRz7cE6ZfhPT55YRxJ8nLDHadMKe=L-hA at mail dot gmail dot com>
- Reply-to: libstdc++ <libstdc++ at gcc dot gnu dot org>
On Wed, 8 Jan 2014, Tim Shen wrote:
I've made several <regex> instantiations (see attach), but I'm not
sure how to export them to the target object file correctly.
It looks strange, I seem to see the same code (with "extern template") in
the headers and in src/, whereas I don't expect "extern" in src/.
We would have saved quite a bit using pointers as iterators for vector,
string, array, etc.
Because of the replacement of basic_string in the next (?) version of gcc,
I am not sure it is such a good idea to export a new instantiation for it.
--
Marc Glisse