This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Some std::locale improvements
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 1 Dec 2014 00:33:51 +0000
- Subject: Re: [patch] Some std::locale improvements
- Authentication-results: sourceware.org; auth=none
- References: <20141129225829 dot GS5191 at redhat dot com> <20141130204843 dot GU5191 at redhat dot com>
Finally, does anyone know why we don't use the stored size in the
facet virtual functions that return strings? e.g.
virtual string
do_grouping() const
{ return _M_data->_M_grouping; }
We could save the cost of a strlen call:
virtual string
do_grouping() const
{ return string(_M_data->_M_grouping, _M_data->_M_grouping_size); }