/Src/Dependencies/Boost/libs/xpressive/test/multiple_defs1.cpp

http://hadesmem.googlecode.com/ · C++ · 16 lines · 9 code · 1 blank · 6 comment · 0 complexity · ee90e4fc9dab70951654740e24e9fec8 MD5 · raw file

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // multiple_defs1.cpp
  3. //
  4. // Copyright 2008 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. #include <boost/xpressive/xpressive.hpp>
  8. extern int f();
  9. int main()
  10. {
  11. using namespace boost::xpressive;
  12. sregex srx = +_;
  13. sregex drx = sregex::compile(".+");
  14. return f();
  15. }