Files
Leviathan/Library/External/include/boost/network/traits/istringstream.hpp
T
2026-06-01 12:46:52 +02:00

45 lines
1.2 KiB
C++

// Copyright (c) Glyn Matthews 2009.
// Copyright (c) Dean Michael Berris 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_ISTRINGSTREAM_INC
# define BOOST_NETWORK_TRAITS_ISTRINGSTREAM_INC
# include <sstream>
# include <boost/network/tags.hpp>
#include <boost/network/support/is_default_string.hpp>
#include <boost/network/support/is_default_wstring.hpp>
namespace boost { namespace network {
template <class Tag>
struct unsupported_tag;
template <class Tag, class Enable = void>
struct istringstream
{
typedef unsupported_tag<Tag> type;
};
template <class Tag>
struct istringstream<Tag, typename enable_if<is_default_string<Tag> >::type>
{
typedef std::istringstream type;
};
template <class Tag>
struct istringstream<Tag, typename enable_if<is_default_wstring<Tag> >::type>
{
typedef std::basic_istringstream<wchar_t> type;
};
} // namespace network
} // namespace boost
#endif // BOOST_NETWORK_TRAITS_ISTRINGSTREAM_INC