empty_string.cpp 714 B

123456789101112131415161718192021222324252627
  1. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #define BOOST_TEST_MODULE empty_string
  6. #include <boost/metaparse/config.hpp>
  7. #if BOOST_METAPARSE_STD >= 2011
  8. # include <boost/metaparse/v1/cpp11/impl/empty_string.hpp>
  9. #else
  10. # include <boost/metaparse/v1/cpp98/impl/empty_string.hpp>
  11. #endif
  12. #include <boost/test/unit_test.hpp>
  13. #include <string>
  14. BOOST_AUTO_TEST_CASE(test_empty_string)
  15. {
  16. using boost::metaparse::v1::impl::empty_string;
  17. using std::string;
  18. // test_value
  19. BOOST_REQUIRE_EQUAL(string(), empty_string<>::value);
  20. }