This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] regex_traits implementation
- From: Tim Shen <timshen91 at gmail dot com>
- To: "libstdc++" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: Stephen Webb <stephen dot webb at canonical dot com>, Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Date: Wed, 3 Jul 2013 12:15:09 +0800
- Subject: Re: [patch] regex_traits implementation
- References: <CAPrifDmvwyXmOS4Wp1mo+ORnEk0o5=_dXbLimv9soahjcSuwAw at mail dot gmail dot com> <51CE1755 dot 1040401 at oracle dot com> <51CE1ED5 dot 6020104 at bregmasoft dot ca> <294c5ce0-0569-463f-b716-95abf2d2f848 at email dot android dot com> <CAGBC11ktNNzXhMLPuoxwyQ0o2QqEtq0S8Qi8YN3FMSsh5r_rZA at mail dot gmail dot com> <CAGBC11mJEnp70OdDdKr9BduhxXCrs9RUoN0TOXKhg7VSKnvQMQ at mail dot gmail dot com> <CAH6eHdShjBcZ+yF8O3+SOh222G5BQ5huMyE7-i0OhCTmbBhoeQ at mail dot gmail dot com> <CAPrifDnC--3U0KMW6DPZa_TCN=JAUrxLu3u-uTSihHPD_Hv_sg at mail dot gmail dot com> <CAH6eHdQyGic_sH=sgsE0pJ8Jqx3+xnMtcF4NWzJpxWpgqtKWnw at mail dot gmail dot com>
All fixed. I use `_RegexMask` rather than `const _RegexMask&` just
because, IMO, const reference is for something very large and doesn't
need to be every-byte-accessed.
Add _RegexMask::_S_valid_mask = 0x3 instead of using the literal everywhere.
--
Tim Shen
Attachment:
regex_traits.patch
Description: Binary data