Nate Rosenblum created THRIFT-1845:
--------------------------------------
Summary: Fix compiler warning caused by implicit string conversion
with Xcode 4.6
Key: THRIFT-1845
URL: https://issues.apache.org/jira/browse/THRIFT-1845
Project: Thrift
Issue Type: Bug
Components: C++ - Library
Affects Versions: 0.9
Environment: Building w/ clang as shipped with Xcode 4.6
Reporter: Nate Rosenblum
Fix For: 0.9
Attachments: 0001-Don-t-rely-on-implicit-string-conversion.patch
Clang doesn't do the implicit char[] -> std::string conversion before
evaluating the + operator in the following statement (and even if it did, it
would complain that there is no string::operator+ defined for a non-character
integral type.
{code}
int8_t type;
//...
throw TException("don't know what type: " + type);
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira