This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Some std::locale improvements


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); }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]