This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Announcing <regex>?
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Tim Shen <timshen91 at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Date: Wed, 2 Oct 2013 00:41:53 +0200
- Subject: Re: Announcing <regex>?
- Authentication-results: sourceware.org; auth=none
- References: <5249C1FF dot 8050207 at oracle dot com> <CAPrifDmfZzgCH--xP=DD-XPSV5vFZdh7uh2frw=2SnR5XP2fMA at mail dot gmail dot com> <571E92A2-ADCC-4641-BAB3-C893943188E0 at oracle dot com> <CAPrifDmSjZYRpXvaoc52C6HY_48YyqwiJ3U7qoeEMXDrh2inRg at mail dot gmail dot com>
Hi,
> Il giorno 02/ott/2013, alle ore 00:21, Tim Shen <timshen91@gmail.com> ha scritto:
>
>> On Tue, Oct 1, 2013 at 6:08 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
>> What do you mean by "not well defined"? Non confoming? Why?
>
> I don't know if the word 'define' is appropriate, maybe I should just
> use 'implement'.
>
> It's indeed the problem that needs extra support from <locale>,
> described by [28.7.7]. More detailed,
> http://www.open-std.org/Jtc1/sc22/wg21/docs/papers/2003/n1429.htm
> offered what the function means.
Ok, thus just say that transform_primary is unimplented. Please also add a comment inline in the code explaining the issue, but don't word it in term of <locale>, because <locale> is just what it is per C++11, and doesn't directly provide what we need in the public interface (if I understand the issue): just say that implementing the function appears to require libc support + a link to the message you sent a couple of weeks ago to the libstdc++-v3 mailing list.
Ok with the above changes.
Thanks!
Paolo