]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/samples/waveidl/instantiate_has_include_grammar.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
4 Sample: IDL oriented preprocessor
5 Explicit instantiation of the has_include_grammar template
9 Copyright (c) 2001-2010 Hartmut Kaiser. Distributed under the Boost
10 Software License, Version 1.0. (See accompanying file
11 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
12 =============================================================================*/
16 #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0
20 #include <boost/wave/token_ids.hpp>
21 #include <boost/wave/cpplexer/cpp_lex_token.hpp>
23 #include "idllexer/idl_lex_iterator.hpp"
25 #include <boost/wave/grammars/cpp_has_include_grammar.hpp>
27 ///////////////////////////////////////////////////////////////////////////////
29 // Explicit instantiation of the has_include_grammar_gen template
30 // with the correct token type. This instantiates the corresponding parse
31 // function, which in turn instantiates the has_include_grammar
32 // object (see wave/grammars/cpp_has_include_grammar.hpp)
34 ///////////////////////////////////////////////////////////////////////////////
36 typedef boost::wave::idllexer::lex_iterator
<
37 boost::wave::cpplexer::lex_token
<> >
39 template struct boost::wave::grammars::has_include_grammar_gen
<lexer_type
>;
41 #endif // #if BOOST_WAVE_SEPARATE_GRAMMAR_INSTANTIATION != 0