Last change
on this file since 69 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
718 bytes
|
Line | |
---|
1 | /////////////////////////////////////////////////////////////////////////////// |
---|
2 | // test_dynamic.cpp |
---|
3 | // |
---|
4 | // Copyright 2004 Eric Niebler. Distributed under the Boost |
---|
5 | // Software License, Version 1.0. (See accompanying file |
---|
6 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
7 | |
---|
8 | #include <boost/xpressive/xpressive_dynamic.hpp> |
---|
9 | #include "./test_minimal.hpp" |
---|
10 | |
---|
11 | /////////////////////////////////////////////////////////////////////////////// |
---|
12 | // test_main |
---|
13 | int test_main( int, char*[] ) |
---|
14 | { |
---|
15 | using namespace boost::xpressive; |
---|
16 | |
---|
17 | std::string str("bar"); |
---|
18 | sregex rx = sregex::compile("b.*ar"); |
---|
19 | smatch what; |
---|
20 | |
---|
21 | if(!regex_match(str, what, rx)) |
---|
22 | { |
---|
23 | BOOST_ERROR("oops"); |
---|
24 | } |
---|
25 | |
---|
26 | return 0; |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.