newline.hpp 869 B

1234567891011121314151617181920212223242526272829303132
  1. // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
  2. // (C) Copyright 2005-2007 Jonathan Turkanis
  3. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
  5. // See http://www.boost.org/libs/iostreams for documentation.
  6. #ifndef BOOST_IOSTREAMS_DETAIL_NEWLINE_HPP_INCLUDED
  7. #define BOOST_IOSTREAMS_DETAIL_NEWLINE_HPP_INCLUDED
  8. #if defined(_MSC_VER)
  9. # pragma once
  10. #endif
  11. namespace boost { namespace iostreams { namespace detail {
  12. template<typename Ch>
  13. struct newline;
  14. template<>
  15. struct newline<char> {
  16. BOOST_STATIC_CONSTANT(char, value = '\n');
  17. };
  18. template<>
  19. struct newline<wchar_t> {
  20. BOOST_STATIC_CONSTANT(wchar_t, value = L'\n');
  21. };
  22. } } } // End namespaces detaill, iostreams, boost.
  23. #endif // #ifndef BOOST_IOSTREAMS_DETAIL_NEWLINE_HPP_INCLUDED