fork download
  1. #include <boost/regex.hpp>
  2. #include <iostream>
  3. #include <string>
  4.  
  5. int main()
  6. {
  7.  
  8.  
  9. boost::regex re("^b");
  10. std::string a = "ab";
  11. std::cout << boost::regex_match(a.begin() + 1, a.end(), re, boost::regex_constants::match_prev_avail) << std::endl;
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:27: fatal error: boost/regex.hpp: No such file or directory
compilation terminated.
stdout
Standard output is empty