From 3c8968ee65bbcc08e7b4e948dbee0518c6a4b6bd Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 21 Oct 2010 19:05:01 +0000 Subject: Get rid of boost::regex in test code. It was barely being used and it causes portability problems on older versions of boost. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1026103 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/test_tools.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'qpid/cpp/src/tests/test_tools.h') diff --git a/qpid/cpp/src/tests/test_tools.h b/qpid/cpp/src/tests/test_tools.h index bb2509fd32..de672f938a 100644 --- a/qpid/cpp/src/tests/test_tools.h +++ b/qpid/cpp/src/tests/test_tools.h @@ -23,7 +23,6 @@ #include // Include before boost/test headers. #include #include -#include #include #include #include @@ -75,21 +74,6 @@ bool operator == (const boost::assign_detail::generic_list& b, const set& namespace qpid { namespace tests { -/** NB: order of parameters is regex first, in line with - * CHECK(expected, actual) convention. - */ -inline bool regexPredicate(const std::string& re, const std::string& text) { - return boost::regex_match(text, boost::regex(re)); -} - -/** Check for regular expression match. You must #include */ -#if (BOOST_VERSION < 103300) - #define BOOST_CHECK_REGEX(re, text) -#else - #define BOOST_CHECK_REGEX(re, text) \ - BOOST_CHECK_PREDICATE(regexPredicate, (re)(text)) -#endif - /** Check if types of two objects (as given by typeinfo::name()) match. */ #define BOOST_CHECK_TYPEID_EQUAL(a,b) BOOST_CHECK_EQUAL(typeid(a).name(),typeid(b).name()) -- cgit v1.2.1