6 * Use, modification and distribution are subject to the
7 * Boost Software License, Version 1.0. (See accompanying file
8 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
12 #include <boost/regex.hpp>
13 #include <boost/config.hpp>
15 #if defined(BOOST_MSVC)
16 // this lets us compile at warning level 4 without seeing concept-check related warnings
17 # pragma warning(disable:4100)
20 #pragma option -w-8019 -w-8004 -w-8008
23 #pragma warning(disable:1418 981 983 595 383)
26 #include <boost/regex/concepts.hpp>
31 boost::function_requires
<
32 boost::RegexTraitsConcept
<
33 boost::regex_traits
<char>
36 #ifndef BOOST_NO_STD_LOCALE
37 boost::function_requires
<
38 boost::BoostRegexConcept
<
39 boost::basic_regex
<char, boost::cpp_regex_traits
<char> >
42 #ifndef BOOST_NO_WREGEX
43 boost::function_requires
<
44 boost::BoostRegexConcept
<
45 boost::basic_regex
<wchar_t, boost::cpp_regex_traits
<wchar_t> >
50 boost::function_requires
<
51 boost::BoostRegexConcept
<
52 boost::basic_regex
<char, boost::c_regex_traits
<char> >
55 #ifndef BOOST_NO_WREGEX
56 boost::function_requires
<
57 boost::BoostRegexConcept
<
58 boost::basic_regex
<wchar_t, boost::c_regex_traits
<wchar_t> >
62 #if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32)
63 boost::function_requires
<
64 boost::BoostRegexConcept
<
65 boost::basic_regex
<char, boost::w32_regex_traits
<char> >
68 #ifndef BOOST_NO_WREGEX
69 boost::function_requires
<
70 boost::BoostRegexConcept
<
71 boost::basic_regex
<wchar_t, boost::w32_regex_traits
<wchar_t> >
77 // now test the regex_traits concepts:
79 typedef boost::basic_regex
<char, boost::regex_traits_architype
<char> > regex_traits_tester_type1
;
80 boost::function_requires
<
81 boost::BoostRegexConcept
<
82 regex_traits_tester_type1
85 typedef boost::basic_regex
<boost::char_architype
, boost::regex_traits_architype
<boost::char_architype
> > regex_traits_tester_type2
;
86 boost::function_requires
<
87 boost::BaseRegexConcept
<
88 regex_traits_tester_type2