1 | /* |
---|---|
2 | Copyright (c) Marshall Clow 2010-2012. |
3 | |
4 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
5 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 | |
7 | For more information, see http://www.boost.org |
8 | */ |
9 | |
10 | #include <vector> |
11 | #include <boost/cstdint.hpp> |
12 | #include <boost/algorithm/searching/boyer_moore.hpp> |
13 | |
14 | int main( int , char* [] ) |
15 | { |
16 | std::vector<boost::uint8_t> cv; |
17 | std::vector<boost:: int8_t> iv; |
18 | |
19 | // Should fail to compile because the underlying types are different |
20 | // They are the same size, but one is signed, and the other is not. |
21 | (void) boost::algorithm::boyer_moore_search ( |
22 | corpus_first: cv.begin (), corpus_last: cv.end (), pat_first: iv.begin (), pat_last: iv.end ()); |
23 | |
24 | return 0; |
25 | } |
26 |