PageRenderTime 14ms CodeModel.GetById 8ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/boost/spirit/home/karma/detail/get_stricttag.hpp

http://hadesmem.googlecode.com/
C++ Header | 33 lines | 21 code | 6 blank | 6 comment | 0 complexity | 2f71b83b13e96d63f0e393ce60541365 MD5 | raw file
 1//  Copyright (c) 2001-2011 Hartmut Kaiser
 2// 
 3//  Distributed under the Boost Software License, Version 1.0. (See accompanying 
 4//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 5
 6#if !defined(BOOST_SPIRIT_KARMA_GET_STRICTTAG_APR_22_2010_1007AM)
 7#define BOOST_SPIRIT_KARMA_GET_STRICTTAG_APR_22_2010_1007AM
 8
 9#if defined(_MSC_VER)
10#pragma once
11#endif
12
13#include <boost/mpl/or.hpp>
14#include <boost/mpl/bool.hpp>
15#include <boost/spirit/home/support/common_terminals.hpp>
16
17namespace boost { namespace spirit { namespace karma { namespace detail
18{
19    // the default mode for Karma is 'relaxed'
20    template <
21        typename Modifiers
22      , typename StrictModifier = typename mpl::or_<
23            has_modifier<Modifiers, tag::strict>
24          , has_modifier<Modifiers, tag::relaxed> >::type>
25    struct get_stricttag : mpl::false_ {};
26
27    // strict mode is enforced only when tag::strict is on the modifiers list
28    template <typename Modifiers>
29    struct get_stricttag<Modifiers, mpl::true_>
30      : has_modifier<Modifiers, tag::strict> {};
31}}}}
32
33#endif