diff options
author | Kim van der Riet <kpvdr@apache.org> | 2009-06-05 15:38:09 +0000 |
---|---|---|
committer | Kim van der Riet <kpvdr@apache.org> | 2009-06-05 15:38:09 +0000 |
commit | c407bb8fb02237f358fbdbd599fbce3b8881b7a6 (patch) | |
tree | 0efe1a1cf1dfc91a177d8dfda18fd005179c7132 /cpp/src/tests/ForkedBroker.cpp | |
parent | 1a11f4e8bc629c473c1062197ecdf390205c6579 (diff) | |
download | qpid-python-c407bb8fb02237f358fbdbd599fbce3b8881b7a6.tar.gz |
Patch from Michael Goulish - QPID-1891 "fix declaration problems with boost 1_33_1", but with minor additional fixes.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@782051 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/ForkedBroker.cpp')
-rw-r--r-- | cpp/src/tests/ForkedBroker.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/tests/ForkedBroker.cpp b/cpp/src/tests/ForkedBroker.cpp index 12175d3287..27480bad6f 100644 --- a/cpp/src/tests/ForkedBroker.cpp +++ b/cpp/src/tests/ForkedBroker.cpp @@ -22,7 +22,6 @@ #include "ForkedBroker.h" #include "qpid/log/Statement.h" #include <boost/bind.hpp> -#include <boost/algorithm/string.hpp> #include <algorithm> #include <stdlib.h> #include <sys/types.h> @@ -76,7 +75,11 @@ static ostream& operator<<(ostream& o, const ForkedBroker::Args& a) { } bool isLogOption(const std::string& s) { - return boost::starts_with(s, "--log-enable") || boost::starts_with(s, "--trace"); + const char * log_enable = "--log-enable", + * trace = "--trace"; + return( (! strncmp(s.c_str(), log_enable, strlen(log_enable))) || + (! strncmp(s.c_str(), trace, strlen(trace))) + ); } } |