Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e491d29
)
THRIFT-1845 cpp: Fix compiler warning caused by implicit string conversion with Xcode 4.6
author
Roger Meier
<roger@apache.org>
Fri, 22 Mar 2013 21:34:16 +0000
(22:34 +0100)
committer
Roger 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
patch
|
blob
|
history
diff --git
a/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc
b/lib/cpp/src/thrift/protocol/TCompactProtocol.tcc
index
55b784f
..
79f1b6b
100644
(file)
--- a/
lib/cpp/src/thrift/protocol/TCompactProtocol.tcc
+++ b/
lib/cpp/src/thrift/protocol/TCompactProtocol.tcc
@@
-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;
}