source: NonGTP/Boost/boost/iostreams/detail/newline.hpp @ 857

Revision 857, 851 bytes checked in by igarcia, 19 years ago (diff)
Line 
1// (C) Copyright Jonathan Turkanis 2005.
2// Distributed under the Boost Software License, Version 1.0. (See accompanying
3// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
4
5// See http://www.boost.org/libs/iostreams for documentation.
6
7#ifndef BOOST_IOSTREAMS_DETAIL_NEWLINE_HPP_INCLUDED
8#define BOOST_IOSTREAMS_DETAIL_NEWLINE_HPP_INCLUDED
9
10#if defined(_MSC_VER) && (_MSC_VER >= 1020)
11# pragma once
12#endif
13
14namespace boost { namespace iostreams { namespace detail {
15
16template<typename Ch>
17struct newline;
18
19template<>
20struct newline<char> {
21    BOOST_STATIC_CONSTANT(char, value = '\n');
22};
23
24template<>
25struct newline<wchar_t> {
26    BOOST_STATIC_CONSTANT(wchar_t, value = L'\n');
27};
28
29} } } // End namespaces detaill, iostreams, boost.
30
31#endif // #ifndef BOOST_IOSTREAMS_DETAIL_NEWLINE_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.