2
0
mirror of https://github.com/boostorg/tr1.git synced 2026-01-19 04:42:14 +00:00
Files
tr1/test/test_regex.cpp
John Maddock 542f8bc602 Added define to regex tests to suppress some definitions in the headers when testing the std version.
Removed surplus include paths from Jamfiles: they mess up Intel C++


[SVN r31610]
2005-11-09 17:33:13 +00:00

48 lines
1.0 KiB
C++

// (C) Copyright John Maddock 2005.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#define BOOST_REGEX_TEST_STD
#ifdef TEST_STD_HEADERS
#include <regex>
#else
#include <boost/tr1/regex.hpp>
#endif
#define BOOST_TEST_TR1_REGEX
#include <boost/regex/concepts.hpp>
int main()
{
boost::function_requires<
boost::RegexTraitsConcept<
std::tr1::regex_traits<char>
>
>();
boost::function_requires<
boost::RegexConcept<
std::tr1::basic_regex<char>
>
>();
boost::function_requires<
boost::RegexConcept<
std::tr1::basic_regex<wchar_t>
>
>();
//
// now test the regex_traits concepts:
//
typedef std::tr1::basic_regex<char, boost::regex_traits_architype<char> > regex_traits_tester_type1;
boost::function_requires<
boost::RegexConcept<
regex_traits_tester_type1
>
>();
return 0;
}