]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | ||
17 | namespace 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 |