THRIFT-1845 cpp: Fix compiler warning caused by implicit string conversion with Xcode 4.6
authorRoger Meier <roger@apache.org>
Fri, 22 Mar 2013 21:34:16 +0000 (22:34 +0100)
committerRoger Meier <roger@apache.org>
Fri, 22 Mar 2013 21:34:16 +0000 (22:34 +0100)
Patch: Nate Rosenblum

lib/cpp/src/thrift/protocol/TCompactProtocol.tcc

index 55b784f..79f1b6b 100644 (file)
@@ -801,7 +801,7 @@ TType TCompactProtocolT<Transport_>::getTType(int8_t type) {
     case detail::compact::CT_STRUCT:
       return T_STRUCT;
     default:
-      throw TException("don't know what type: " + type);
+      throw TException(std::string("don't know what type: ") + (char)type);
   }
   return T_STOP;
 }