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

http://hadesmem.googlecode.com/ · C++ Header · 35 lines · 19 code · 7 blank · 9 comment · 0 complexity · 902ebdd43d2f0ff041e811c23ed4ff71 MD5 · raw file

  1. // Copyright (c) 2001-2011 Joel de Guzman
  2. // Copyright (c) 2001-2011 Hartmut Kaiser
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #if !defined(SPIRIT_KARMA_ENCODING_MARCH_05_2010_0550PM)
  7. #define SPIRIT_KARMA_ENCODING_MARCH_05_2010_0550PM
  8. #if defined(_MSC_VER)
  9. #pragma once
  10. #endif
  11. #include <boost/spirit/home/karma/meta_compiler.hpp>
  12. #include <boost/spirit/home/support/common_terminals.hpp>
  13. namespace boost { namespace spirit
  14. {
  15. ///////////////////////////////////////////////////////////////////////////
  16. // Enablers
  17. ///////////////////////////////////////////////////////////////////////////
  18. // enables encoding
  19. template <typename CharEncoding>
  20. struct use_directive<
  21. karma::domain, tag::char_code<tag::encoding, CharEncoding> >
  22. : mpl::true_ {};
  23. template <typename CharEncoding>
  24. struct is_modifier_directive<
  25. karma::domain, tag::char_code<tag::encoding, CharEncoding> >
  26. : mpl::true_ {};
  27. }}
  28. #endif