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/broker/TopicExchange.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'cpp/src/qpid/broker/TopicExchange.cpp') diff --git a/cpp/src/qpid/broker/TopicExchange.cpp b/cpp/src/qpid/broker/TopicExchange.cpp index 6498e7600d..9ab779777c 100644 --- a/cpp/src/qpid/broker/TopicExchange.cpp +++ b/cpp/src/qpid/broker/TopicExchange.cpp @@ -41,14 +41,6 @@ Tokens& Tokens::operator=(const std::string& s) { } return *this; } - -size_t Tokens::Hash::operator()(const Tokens& p) const { - size_t hash = 0; - for (Tokens::const_iterator i = p.begin(); i != p.end(); ++i) { - hash += std::tr1::hash()(*i); - } - return hash; -} TopicPattern& TopicPattern::operator=(const Tokens& tokens) { Tokens::operator=(tokens); -- cgit v1.2.1