From 6920d8261ca0cdbb7e547a756a32dfd067cd15bc Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 24 Oct 2006 13:29:05 +0000 Subject: QPID-52: use of tr1 and unordered_map break build or RHEL4. Replaced unordered_map with std::map. Use boost::shared_ptr instead of std::tr1::shared_ptr. Since we're using boost for other things now anyway it's simpler & more portable. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@467329 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/FieldTable.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cpp/src/qpid/framing/FieldTable.h') diff --git a/cpp/src/qpid/framing/FieldTable.h b/cpp/src/qpid/framing/FieldTable.h index b48b270895..6b4d9266c1 100644 --- a/cpp/src/qpid/framing/FieldTable.h +++ b/cpp/src/qpid/framing/FieldTable.h @@ -17,8 +17,8 @@ */ #include #include -#include -#include +#include +#include #include "qpid/framing/amqp_types.h" #ifndef _FieldTable_ @@ -33,8 +33,8 @@ class Buffer; class FieldTable { public: - typedef std::tr1::shared_ptr ValuePtr; - typedef std::tr1::unordered_map ValueMap; + typedef boost::shared_ptr ValuePtr; + typedef std::map ValueMap; ~FieldTable(); u_int32_t size() const; @@ -61,7 +61,6 @@ class FieldTable const ValueMap& getMap() const { return values; } ValueMap& getMap() { return values; } - private: friend std::ostream& operator<<(std::ostream& out, const FieldTable& body); ValueMap values; -- cgit v1.2.1