fixed GH #1425: Workaround bug in SolarisStudio 12.4 on RVO-ed objects.

This commit is contained in:
Günter Obiltschnig 2017-11-08 15:05:40 +01:00
parent 18a70a4b3a
commit f4530b0ebc

View File

@ -666,7 +666,7 @@ struct i_char_traits : public std::char_traits<charT>
return Ascii::toLower(c1) < Ascii::toLower(c2); return Ascii::toLower(c1) < Ascii::toLower(c2);
} }
static int compare(const charT* s1, const charT* s2, size_t n) static int compare(const charT* s1, const charT* s2, std::size_t n)
{ {
for (int i = 0; i < n && s1 && s2; ++i, ++s1, ++s2) for (int i = 0; i < n && s1 && s2; ++i, ++s1, ++s2)
{ {