1 // Copyright (c) 2001-2011 Hartmut Kaiser
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)
6 #if !defined(BOOST_SPIRIT_KARMA_GET_STRICTTAG_APR_22_2010_1007AM)
7 #define BOOST_SPIRIT_KARMA_GET_STRICTTAG_APR_22_2010_1007AM
13 #include <boost/mpl/or.hpp>
14 #include <boost/mpl/bool.hpp>
15 #include <boost/spirit/home/support/common_terminals.hpp>
17 namespace boost { namespace spirit { namespace karma { namespace detail
19 // the default mode for Karma is 'relaxed'
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_ {};
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> {};