Last change
on this file since 29 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
1.0 KB
|
Line | |
---|
1 | // (C) Copyright John Maddock 2005. |
---|
2 | // Use, modification and distribution are subject to the |
---|
3 | // Boost Software License, Version 1.0. (See accompanying file |
---|
4 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
5 | |
---|
6 | #define BOOST_REGEX_TEST_STD |
---|
7 | |
---|
8 | #ifdef TEST_STD_HEADERS |
---|
9 | #include <regex> |
---|
10 | #else |
---|
11 | #include <boost/tr1/regex.hpp> |
---|
12 | #endif |
---|
13 | #define BOOST_TEST_TR1_REGEX |
---|
14 | #include <boost/regex/concepts.hpp> |
---|
15 | |
---|
16 | int main() |
---|
17 | { |
---|
18 | boost::function_requires< |
---|
19 | boost::RegexTraitsConcept< |
---|
20 | std::tr1::regex_traits<char> |
---|
21 | > |
---|
22 | >(); |
---|
23 | |
---|
24 | boost::function_requires< |
---|
25 | boost::RegexConcept< |
---|
26 | std::tr1::basic_regex<char> |
---|
27 | > |
---|
28 | >(); |
---|
29 | |
---|
30 | boost::function_requires< |
---|
31 | boost::RegexConcept< |
---|
32 | std::tr1::basic_regex<wchar_t> |
---|
33 | > |
---|
34 | >(); |
---|
35 | |
---|
36 | // |
---|
37 | // now test the regex_traits concepts: |
---|
38 | // |
---|
39 | typedef std::tr1::basic_regex<char, boost::regex_traits_architype<char> > regex_traits_tester_type1; |
---|
40 | boost::function_requires< |
---|
41 | boost::RegexConcept< |
---|
42 | regex_traits_tester_type1 |
---|
43 | > |
---|
44 | >(); |
---|
45 | return 0; |
---|
46 | } |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.