minimal_char_traits_header.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2014-2015
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/container for documentation.
  10. //
  11. /////////////////////////////////////////////////////////////////////////////
  12. #ifndef BOOST_CONTAINER_DETAIL_MINIMAL_CHAR_TRAITS_HEADER_HPP
  13. #define BOOST_CONTAINER_DETAIL_MINIMAL_CHAR_TRAITS_HEADER_HPP
  14. #
  15. #ifndef BOOST_CONFIG_HPP
  16. # include <boost/config.hpp>
  17. #endif
  18. #
  19. #if defined(BOOST_HAS_PRAGMA_ONCE)
  20. # pragma once
  21. #endif
  22. #
  23. #//Try to avoid including <string>, as it's quite big
  24. #if defined(_MSC_VER) && defined(BOOST_DINKUMWARE_STDLIB)
  25. #include <iosfwd> //Dinkum libraries for MSVC define std::char_traits there
  26. #elif defined(BOOST_GNU_STDLIB)
  27. #include <bits/char_traits.h>
  28. #else
  29. #include <string> //Fallback
  30. #endif
  31. #endif //BOOST_CONTAINER_DETAIL_MINIMAL_CHAR_TRAITS_HEADER_HPP