You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2014/04/02 23:23:40 UTC
svn commit: r1584198 - in /qpid/trunk/qpid/cpp/src/qpid: RangeSet.h
broker/MessageBuilder.h broker/SelectorToken.cpp sys/unordered_map.h
Author: astitcher
Date: Wed Apr 2 21:23:40 2014
New Revision: 1584198
URL: http://svn.apache.org/r1584198
Log:
QPID-5658: Small changes to compile with clang's libc++
Modified:
qpid/trunk/qpid/cpp/src/qpid/RangeSet.h
qpid/trunk/qpid/cpp/src/qpid/broker/MessageBuilder.h
qpid/trunk/qpid/cpp/src/qpid/broker/SelectorToken.cpp
qpid/trunk/qpid/cpp/src/qpid/sys/unordered_map.h
Modified: qpid/trunk/qpid/cpp/src/qpid/RangeSet.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/RangeSet.h?rev=1584198&r1=1584197&r2=1584198&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/RangeSet.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/RangeSet.h Wed Apr 2 21:23:40 2014
@@ -26,7 +26,9 @@
#include <boost/iterator/iterator_facade.hpp>
#include <boost/operators.hpp>
#include <boost/bind.hpp>
+
#include <algorithm>
+#include <iostream>
#include <numeric>
namespace qpid {
Modified: qpid/trunk/qpid/cpp/src/qpid/broker/MessageBuilder.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/MessageBuilder.h?rev=1584198&r1=1584197&r2=1584198&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/MessageBuilder.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/MessageBuilder.h Wed Apr 2 21:23:40 2014
@@ -26,6 +26,8 @@
#include "qpid/framing/SequenceNumber.h"
#include "qpid/RefCounted.h"
+#include <string>
+
#include <boost/intrusive_ptr.hpp>
namespace qpid {
Modified: qpid/trunk/qpid/cpp/src/qpid/broker/SelectorToken.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/SelectorToken.cpp?rev=1584198&r1=1584197&r2=1584198&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/SelectorToken.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/SelectorToken.cpp Wed Apr 2 21:23:40 2014
@@ -147,6 +147,7 @@ inline bool isIdentifierPart(char c)
return std::isalnum(c) || c=='_' || c=='$' || c=='.';
}
+static const std::string END("<END>");
bool tokenise(std::string::const_iterator& s, std::string::const_iterator& e, Token& tok)
{
std::string::const_iterator t = s;
@@ -171,7 +172,7 @@ bool tokenise(std::string::const_iterato
while (true)
switch (state) {
case START:
- if (t==e) {tok = Token(T_EOS, s, "<END>"); return true;}
+ if (t==e) {tok = Token(T_EOS, s, END); return true;}
else switch (*t) {
case '(': tokType = T_LPAREN; state = ACCEPT_INC; continue;
case ')': tokType = T_RPAREN; state = ACCEPT_INC; continue;
Modified: qpid/trunk/qpid/cpp/src/qpid/sys/unordered_map.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/unordered_map.h?rev=1584198&r1=1584197&r2=1584198&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/unordered_map.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/unordered_map.h Wed Apr 2 21:23:40 2014
@@ -21,7 +21,7 @@
// unordered_map include path is platform specific
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
# include <unordered_map>
#elif defined(__SUNPRO_CC)
# include <boost/tr1/unordered_map.hpp>
@@ -30,7 +30,11 @@
#endif /* _MSC_VER */
namespace qpid {
namespace sys {
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+ using std::unordered_map;
+#else
using std::tr1::unordered_map;
+#endif
}}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org