Add proper definition for regex_traits::_regex_word

Albert Wong (王重傑) ajwong at google.com
Mon Mar 4 16:07:59 PST 2013


On Mon, Mar 4, 2013 at 4:02 PM, Howard Hinnant <hhinnant at apple.com> wrote:

>
> On Mar 4, 2013, at 6:43 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>
> > On Tue, Mar 5, 2013 at 1:34 AM, Albert Wong (王重傑) <ajwong at google.com>
> wrote:
> >> Hello,
> >>
> >> I have a small patch to regex_traits for fixing some compile errors I
> ran
> >> into building for MIPS Android.  I updated the patch to Phabricator per
> >> these instructions but I have no clue who to add as a reviewer.  The svn
> >> logs make it look like it should be hhinnant, but Phabricator rejects
> Howard
> >> as a reviewer. :-/
> >>
> >> Anyways, the patch is here:
> >>
> >>  http://llvm-reviews.chandlerc.com/D492
> >>
> >> It's a pretty simple 5 liner.
> >
> > Albert,
> >
> > libcxx patches should be sent to cfe-commits.
> >
> > (Adding cfe-commits and Howard Hinnant)
>
> Thanks Dmitri.
>
> Thanks Albert.  I traditionally like to leave the constant specifier in
> the class definition:
>
>     static const char_class_type __regex_word = 0x80;
>
> If we just add this:
>
> template <class _CharT>
> const typename regex_traits<_CharT>::char_class_type
> regex_traits<_CharT>::__regex_word;
>
>
> will that work in your environment?
>

Yep. Doesn't make a difference to me.  New diff uploaded.

Thanks!

-Albert


>
> Howard
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130304/4f2f2223/attachment.html>


More information about the cfe-commits mailing list