From e1c0b830b67e68be71e65ef18657e746ed6b971f Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 2 Jun 2008 15:26:18 +0000 Subject: Fix compiler warning with gcc 4.3 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662461 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/ptr_map.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/src/qpid/ptr_map.h b/cpp/src/qpid/ptr_map.h index 92da79a2e5..f34c3271b3 100644 --- a/cpp/src/qpid/ptr_map.h +++ b/cpp/src/qpid/ptr_map.h @@ -25,6 +25,7 @@ #include #include #include +#include namespace qpid { @@ -49,7 +50,10 @@ typename boost::enable_if::type ptr_map_ptr(const Iter& i) { return &*i; } template -typename boost::disable_if::type +struct PtrMapValueType : public boost::remove_const {}; + +template +typename boost::disable_if::type >::type ptr_map_ptr(const Iter& i) { return i->second; } } // namespace qpid -- cgit v1.2.1