/home/jross/checkouts/qpid/cpp/src/qpid/ptr_map.h File Reference

Workaround for API change between boost 1.33 and 1.34. More...

#include <boost/ptr_container/ptr_map.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_same.hpp>

Include dependency graph for ptr_map.h:

Go to the source code of this file.

Namespaces

namespace  qpid

Typedefs

typedef boost::is_same
< boost::ptr_map< int, int >
::iterator::value_type, int > 
qpid::IsOldPtrMap

Functions

template<class Iter>
boost::enable_if< IsOldPtrMap,
typename Iter::value_type * >
::type 
qpid::ptr_map_ptr (const Iter &i)


Detailed Description

Workaround for API change between boost 1.33 and 1.34.

To be portable across these versions, code using boost::ptr_map iterators should use ptr_map_ptr(i) to get the pointer from boost::ptr_map::iterator i.

Can be removed when we no longer support platforms on 1.33.

See also:
http://www.boost.org/libs/ptr_container/doc/ptr_container.html#upgrading-from-boost-v-1-33

Generated on Thu May 15 22:22:02 2008 for Qpid by  doxygen 1.5.5