multiple_defs2.cpp 462 B

1234567891011121314151617
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // multiple_defs2.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. int f()
  9. {
  10. using namespace boost::xpressive;
  11. sregex srx = +_;
  12. sregex drx = sregex::compile(".+");
  13. return 0;
  14. }