encoding.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  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(SPIRIT_ENCODING_MARCH_05_2010_0528PM)
  7. #define SPIRIT_ENCODING_MARCH_05_2010_0528PM
  8. #if defined(_MSC_VER)
  9. #pragma once
  10. #endif
  11. #include <boost/spirit/home/qi/meta_compiler.hpp>
  12. #include <boost/spirit/home/support/common_terminals.hpp>
  13. namespace boost { namespace spirit
  14. {
  15. ///////////////////////////////////////////////////////////////////////////
  16. // Enablers
  17. ///////////////////////////////////////////////////////////////////////////
  18. template <typename CharEncoding>
  19. struct use_directive<
  20. qi::domain, tag::char_code<tag::encoding, CharEncoding> > // enables encoding
  21. : mpl::true_ {};
  22. template <typename CharEncoding>
  23. struct is_modifier_directive<qi::domain, tag::char_code<tag::encoding, CharEncoding> >
  24. : mpl::true_ {};
  25. }}
  26. #endif