PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

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

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