]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/src/instantiate_re2c_lexer_str.cpp
542103cd31403e783098b29f0e04c3021f777a3d
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3 Explicit instantiation of the lex_functor generation function
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 =============================================================================*/
12 #define BOOST_WAVE_SOURCE 1
14 // disable stupid compiler warnings
15 #include <boost/config/warning_disable.hpp>
16 #include <boost/wave/wave_config.hpp> // configuration data
18 #if BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0
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>
26 ///////////////////////////////////////////////////////////////////////////////
27 // The following file needs to be included only once throughout the whole
29 #include <boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp>
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
36 ///////////////////////////////////////////////////////////////////////////////
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
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.
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).
52 ///////////////////////////////////////////////////////////////////////////////
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
>;
59 // the suffix header occurs after all of the code
60 #ifdef BOOST_HAS_ABI_HEADERS
61 #include BOOST_ABI_SUFFIX
64 #endif // BOOST_WAVE_SEPARATE_LEXER_INSTANTIATION != 0