diff options
author | garga <garga@FreeBSD.org> | 2011-07-28 01:19:06 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2011-07-28 01:19:06 +0800 |
commit | dfc58fcc0f4a8d5d1790b580546469c171fd3fa4 (patch) | |
tree | 9c65489865a94d577cc3707ac2a34ff7c474a537 | |
parent | 6c82293e5ec29cd974b4f30510405591a685871a (diff) | |
download | freebsd-ports-gnome-dfc58fcc0f4a8d5d1790b580546469c171fd3fa4.tar.gz freebsd-ports-gnome-dfc58fcc0f4a8d5d1790b580546469c171fd3fa4.tar.zst freebsd-ports-gnome-dfc58fcc0f4a8d5d1790b580546469c171fd3fa4.zip |
Fix build with clang
-rw-r--r-- | net/xmlrpc-c-devel/files/patch-include__xmlrpc-c__base.hpp | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/net/xmlrpc-c-devel/files/patch-include__xmlrpc-c__base.hpp b/net/xmlrpc-c-devel/files/patch-include__xmlrpc-c__base.hpp new file mode 100644 index 000000000000..3744db6d0290 --- /dev/null +++ b/net/xmlrpc-c-devel/files/patch-include__xmlrpc-c__base.hpp @@ -0,0 +1,76 @@ +--- include/xmlrpc-c/base.hpp.orig 2011-07-26 14:56:50.000000000 -0300 ++++ include/xmlrpc-c/base.hpp 2011-07-27 09:46:38.000000000 -0300 +@@ -226,28 +226,6 @@ + + + +-template<class InputIterator> xmlrpc_c::value_array +-arrayValueSlice(InputIterator begin, +- InputIterator end) { +-/*---------------------------------------------------------------------------- +- convert C++ iterator pair to XML-RPC array +------------------------------------------------------------------------------*/ +- carray ret; +- for (InputIterator p = begin; p != end; ++p) { +- ret.push_back(toValue(*p)); +- } +- return xmlrpc_c::value_array(ret); +-} +- +-template<class MemberClass> inline xmlrpc_c::value_array +-arrayValueArray(const MemberClass * const in, +- size_t const size) { +-/*---------------------------------------------------------------------------- +- convert C++ array to XML-RPC array +------------------------------------------------------------------------------*/ +- return arrayValueSlice(in, in + size); +-} +- + class XMLRPC_DLLEXPORT value_nil : public value { + public: + value_nil(); +@@ -296,7 +274,7 @@ + } + + inline xmlrpc_c::value_bytestring +- toValue(cbytestring const& x) { ++toValue(cbytestring const& x) { + return xmlrpc_c::value_bytestring(x); + } + +@@ -324,6 +302,19 @@ + return xmlrpc_c::value_struct(ret); + } + ++template<class InputIterator> xmlrpc_c::value_array ++arrayValueSlice(InputIterator begin, ++ InputIterator end) { ++/*---------------------------------------------------------------------------- ++ convert C++ iterator pair to XML-RPC array ++-----------------------------------------------------------------------------*/ ++ carray ret; ++ for (InputIterator p = begin; p != end; ++p) { ++ ret.push_back(toValue(*p)); ++ } ++ return xmlrpc_c::value_array(ret); ++} ++ + template<class T> inline xmlrpc_c::value_array + toValue(std::vector<T> const& in) { + /*---------------------------------------------------------------------------- +@@ -398,6 +389,15 @@ + } + } + ++template<class MemberClass> inline xmlrpc_c::value_array ++arrayValueArray(const MemberClass * const in, ++ size_t const size) { ++/*---------------------------------------------------------------------------- ++ convert C++ array to XML-RPC array ++-----------------------------------------------------------------------------*/ ++ return arrayValueSlice(in, in + size); ++} ++ + class XMLRPC_DLLEXPORT fault { + /*---------------------------------------------------------------------------- + This is an XML-RPC fault. |