Skip to content

Commit

Permalink
Merge pull request #1425 from CosminCremarenco-Murex/fix-rvo-sunstudi…
Browse files Browse the repository at this point in the history
…o124

Workaround bug in SolarisStudio 12.4 on RVO-ed objects.
  • Loading branch information
obiltschnig authored Nov 8, 2017
2 parents ad7c166 + 92e49d7 commit 18a70a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Foundation/include/Poco/String.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,13 @@ S translateInPlace(S& str, const typename S::value_type* from, const typename S:
poco_check_ptr (from);
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;
#else
return str;
#endif
}


Expand Down

0 comments on commit 18a70a4

Please sign in to comment.