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 <[email protected]> Authored: Fri Nov 13 15:47:40 2015 -0500 Committer: Alan Conway <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
