multiple_defs1.cpp 481 B

12345678910111213141516
  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. }