PageRenderTime 26ms CodeModel.GetById 20ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/spirit/home/qi/directive/encoding.hpp

http://hadesmem.googlecode.com/
C++ Header | 32 lines | 18 code | 5 blank | 9 comment | 0 complexity | 8da38ec6059c839fa172291a40ae7423 MD5 | raw file
 1/*=============================================================================
 2    Copyright (c) 2001-2011 Joel de Guzman
 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#if !defined(SPIRIT_ENCODING_MARCH_05_2010_0528PM)
 8#define SPIRIT_ENCODING_MARCH_05_2010_0528PM
 9
10#if defined(_MSC_VER)
11#pragma once
12#endif
13
14#include <boost/spirit/home/qi/meta_compiler.hpp>
15#include <boost/spirit/home/support/common_terminals.hpp>
16
17namespace boost { namespace spirit
18{
19    ///////////////////////////////////////////////////////////////////////////
20    // Enablers
21    ///////////////////////////////////////////////////////////////////////////
22    template <typename CharEncoding>
23    struct use_directive<
24        qi::domain, tag::char_code<tag::encoding, CharEncoding> > // enables encoding
25      : mpl::true_ {};
26
27    template <typename CharEncoding>
28    struct is_modifier_directive<qi::domain, tag::char_code<tag::encoding, CharEncoding> >
29      : mpl::true_ {};
30}}
31
32#endif