This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Patch set for regex instantiation
- From: Daniel Krügler <daniel dot kruegler at gmail dot com>
- To: Tim Shen <timshen91 at gmail dot com>
- Cc: Jonathan Wakely <jwakely at redhat dot com>, "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 29 Jun 2014 22:33:33 +0200
- Subject: Re: [Patch] Patch set for regex instantiation
- Authentication-results: sourceware.org; auth=none
- References: <CAPrifDmCWD2-AOQnjf51qgvDbnFH=Mpft4nUg0oFbbtHcsMNvw at mail dot gmail dot com> <20140629171801 dot GR2711 at redhat dot com> <CAPrifD=mJdsV78shtQ64_MXNHVA0a-NLapKfKAX4QS6kQpZALg at mail dot gmail dot com>
2014-06-29 20:47 GMT+02:00 Tim Shen <timshen91@gmail.com>:
> On Sun, Jun 29, 2014 at 10:18 AM, Jonathan Wakely <jwakely@redhat.com> wrote:
>> Alternatively, we could just make them local statics instead of member
>> data and still remove the duplciation (see attached).
>
> This is a good idea. Can we use constexpr for the functions/static variables?
Not so for local statics within constexpr functions, but you could
have constexpr static data members, yes.
- Daniel