boost_no_sstream.ipp 643 B

1234567891011121314151617181920212223242526272829
  1. // (C) Copyright John Maddock 2001.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for the most recent version.
  6. // MACRO: BOOST_NO_STRINGSTREAM
  7. // TITLE: <sstream>
  8. // DESCRIPTION: The C++ implementation does not provide the <sstream> header.
  9. #include <sstream>
  10. #include <string>
  11. namespace boost_no_stringstream{
  12. int test()
  13. {
  14. std::stringstream ss;
  15. ss << "abc";
  16. std::string s = ss.str();
  17. return (s != "abc");
  18. }
  19. }