mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-23 18:42:17 +01:00
fixed GH #1425: Workaround bug in SolarisStudio 12.4 on RVO-ed objects.
This commit is contained in:
parent
18a70a4b3a
commit
f4530b0ebc
@ -403,9 +403,9 @@ S translateInPlace(S& str, const typename S::value_type* from, const typename S:
|
||||
poco_check_ptr (to);
|
||||
str = translate(str, S(from), S(to));
|
||||
#if defined(__SUNPRO_CC)
|
||||
// Fix around the RVO bug in SunStudio 12.4
|
||||
S ret(str);
|
||||
return ret;
|
||||
// Fix around the RVO bug in SunStudio 12.4
|
||||
S ret(str);
|
||||
return ret;
|
||||
#else
|
||||
return str;
|
||||
#endif
|
||||
@ -666,7 +666,7 @@ struct i_char_traits : public std::char_traits<charT>
|
||||
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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user