NO-JIRA: c++ fix compiler warning.

Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/820f840c
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/820f840c
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/820f840c

Branch: refs/heads/go1
Commit: 820f840cd1b7ecb742202f69e9e4ac3151e4c9d1
Parents: 2a1e1e7
Author: Alan Conway <[email protected]>
Authored: Tue Nov 3 10:44:57 2015 -0500
Committer: Alan Conway <[email protected]>
Committed: Tue Nov 3 10:44:57 2015 -0500

----------------------------------------------------------------------
 proton-c/bindings/cpp/src/decoder.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/820f840c/proton-c/bindings/cpp/src/decoder.cpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/src/decoder.cpp 
b/proton-c/bindings/cpp/src/decoder.cpp
index 1f11b4a..d148b12 100644
--- a/proton-c/bindings/cpp/src/decoder.cpp
+++ b/proton-c/bindings/cpp/src/decoder.cpp
@@ -168,7 +168,8 @@ decoder& operator>>(decoder& d, message_id& id) {
       case STRING:
         return d >> id.value_;
       default:
-        throw decode_error("expected one of ulong, uuid, binary or string but 
found "+d.type());
+        throw decode_error("expected one of ulong, uuid, binary or string but 
found " +
+                           type_name(d.type()));
     };
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to