search_fail3.cpp 527 B

12345678910111213141516171819
  1. /*
  2. Copyright (c) Marshall Clow 2010-2012.
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. For more information, see http://www.boost.org
  6. */
  7. #include <vector>
  8. #include <boost/algorithm/searching/boyer_moore.hpp>
  9. int main( int , char* [] )
  10. {
  11. // Should fail to compile because the search objects are not default-constructible
  12. boost::algorithm::boyer_moore<std::vector<char>::iterator> bm;
  13. return 0;
  14. }