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

http://hadesmem.googlecode.com/ · C++ Header · 32 lines · 18 code · 5 blank · 9 comment · 0 complexity · 8da38ec6059c839fa172291a40ae7423 MD5 · raw file

  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