You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2015/11/23 18:58:01 UTC
[33/50] [abbrv] qpid-proton git commit: NO-JIRA: c++: Fix compile
errors in encoder.hpp with c++11
NO-JIRA: c++: Fix compile errors in encoder.hpp with c++11
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/630471e3
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/630471e3
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/630471e3
Branch: refs/heads/go1
Commit: 630471e32710553a2cdccd523d3b02da540f9cb4
Parents: c7a5652
Author: Alan Conway <ac...@redhat.com>
Authored: Fri Nov 13 15:47:40 2015 -0500
Committer: Alan Conway <ac...@redhat.com>
Committed: Fri Nov 13 15:47:40 2015 -0500
----------------------------------------------------------------------
proton-c/bindings/cpp/include/proton/encoder.hpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/630471e3/proton-c/bindings/cpp/include/proton/encoder.hpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/include/proton/encoder.hpp b/proton-c/bindings/cpp/include/proton/encoder.hpp
index 7dd7ddb..c10ad10 100644
--- a/proton-c/bindings/cpp/include/proton/encoder.hpp
+++ b/proton-c/bindings/cpp/include/proton/encoder.hpp
@@ -224,11 +224,11 @@ template <class K, class T, class C, class A> encoder& operator<<(encoder &e, co
// Encode as ARRAY.
template <class T, class A> encoder& operator<<(encoder &e, const std::forward_list<T, A>& v) { return e << as<ARRAY>(v); }
-template <class T, std::size_t N> encoder& operator<<(encoder &e, const std::array<T, N>& v) { return e << as<ARRAY>(v); }n
+template <class T, std::size_t N> encoder& operator<<(encoder &e, const std::array<T, N>& v) { return e << as<ARRAY>(v); }
// Encode as LIST.
-template <class value, class A> encoder& operator<<(encoder &e, const std::forward_list<value, A>& v) { return e << as<LIST>(v); }
-template <class value, std::size_t N> encoder& operator<<(encoder &e, const std::array<value, N>& v) { return e << as<LIST>(v); }
+template <class A> encoder& operator<<(encoder &e, const std::forward_list<value, A>& v) { return e << as<LIST>(v); }
+template <std::size_t N> encoder& operator<<(encoder &e, const std::array<value, N>& v) { return e << as<LIST>(v); }
// Encode as map.
template <class K, class T, class C, class A> encoder& operator<<(encoder &e, const std::unordered_map<K, T, C, A>& v) { return e << as<MAP>(v); }
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org