]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/src/instantiate_re2c_lexer_str.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / wave / src / instantiate_re2c_lexer_str.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3 Explicit instantiation of the lex_functor generation function
4
5 http://www.boost.org/
6
7 Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
8 Software License, Version 1.0. (See accompanying file
9 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 =============================================================================*/
11
12 #define BOOST_WAVE_SOURCE 1
13
14 // disable stupid compiler warnings
15 #include <boost/config/warning_disable.hpp>
16 #include <boost/wave/wave_config.hpp> // configuration data
17
18 #if BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0
19
20 #include <string>
21
22 #include <boost/wave/token_ids.hpp>
23 #include <boost/wave/cpplexer/cpp_lex_token.hpp>
24 #include <boost/wave/cpplexer/cpp_lex_iterator.hpp>
25
26 ///////////////////////////////////////////////////////////////////////////////
27 // The following file needs to be included only once throughout the whole
28 // program.
29 #include <boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp>
30
31 // this must occur after all of the includes and before any code appears
32 #ifdef BOOST_HAS_ABI_HEADERS
33 #include BOOST_ABI_PREFIX
34 #endif
35
36 ///////////////////////////////////////////////////////////////////////////////
37 //
38 // If you've used another iterator type as std::string::iterator, you have to
39 // instantiate the new_lexer_gen<> template for this iterator type too.
40 // The reason is, that the library internally uses the new_lexer_gen<>
41 // template with a std::string::iterator. (You just have to undefine the
42 // following line.)
43 //
44 // This is moved into a separate compilation unit to decouple the compilation
45 // of the C++ lexer from the compilation of the other modules, which helps to
46 // reduce compilation time.
47 //
48 // The template parameter(s) supplied should be identical to the first
49 // parameter supplied while instantiating the boost::wave::context<> template
50 // (see the file cpp.cpp).
51 //
52 ///////////////////////////////////////////////////////////////////////////////
53
54 #if !defined(BOOST_WAVE_STRINGTYPE_USE_STDSTRING)
55 template struct boost::wave::cpplexer::new_lexer_gen<std::string::iterator>;
56 template struct boost::wave::cpplexer::new_lexer_gen<std::string::const_iterator>;
57 #endif
58
59 // the suffix header occurs after all of the code
60 #ifdef BOOST_HAS_ABI_HEADERS
61 #include BOOST_ABI_SUFFIX
62 #endif
63
64 #endif // BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0