Menu

[r217]: / trunk / boost / network / traits / ostringstream.hpp  Maximize  Restore  History

Download this file

40 lines (27 with data), 797 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Glyn Matthews 2009.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef __BOOST_NETWORK_TRAITS_OSTRINGSTREAM_INC__
# define __BOOST_NETWORK_TRAITS_OSTRINGSTREAM_INC__
# include <sstream>
# include <boost/network/tags.hpp>
namespace boost {
namespace network {
template <
class Tag
>
struct ostringstream {
typedef void type;
};
template <>
struct ostringstream<tags::default_string> {
typedef std::ostringstream type;
};
template <>
struct ostringstream<tags::default_wstring> {
typedef std::wostringstream type;
};
} // namespace network
} // namespace boost
#endif // __BOOST_NETWORK_TRAITS_OSTRINGSTREAM_INC__