empty_string.hpp 713 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef BOOST_METAPARSE_V1_CPP98_IMPL_EMPTY_STRING_HPP
  2. #define BOOST_METAPARSE_V1_CPP98_IMPL_EMPTY_STRING_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. namespace boost
  8. {
  9. namespace metaparse
  10. {
  11. namespace v1
  12. {
  13. namespace impl
  14. {
  15. template <class Ignore = int>
  16. struct empty_string
  17. {
  18. typedef empty_string type;
  19. static const char value[1];
  20. };
  21. template <class Ignore>
  22. const char empty_string<Ignore>::value[1] = {0};
  23. }
  24. }
  25. }
  26. }
  27. #endif