sl@0: //----------------------------------------------------------------------------- sl@0: // boost detail/templated_streams.hpp header file sl@0: // See http://www.boost.org for updates, documentation, and revision history. sl@0: //----------------------------------------------------------------------------- sl@0: // sl@0: // Copyright (c) 2003 sl@0: // Eric Friedman sl@0: // sl@0: // Distributed under the Boost Software License, Version 1.0. (See sl@0: // accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: sl@0: #ifndef BOOST_DETAIL_TEMPLATED_STREAMS_HPP sl@0: #define BOOST_DETAIL_TEMPLATED_STREAMS_HPP sl@0: sl@0: #include "boost/config.hpp" sl@0: sl@0: /////////////////////////////////////////////////////////////////////////////// sl@0: // (detail) BOOST_TEMPLATED_STREAM_* macros sl@0: // sl@0: // Provides workaround platforms without stream class templates. sl@0: // sl@0: sl@0: #if !defined(BOOST_NO_STD_LOCALE) sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) \ sl@0: template < typename E , typename T > sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_TEMPLATE_ALLOC(E,T,A) \ sl@0: template < typename E , typename T , typename A > sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_ARGS(E,T) \ sl@0: typename E , typename T sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_ARGS_ALLOC(E,T,A) \ sl@0: typename E , typename T , typename A sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_COMMA , sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_ELEM(E) E sl@0: #define BOOST_TEMPLATED_STREAM_TRAITS(T) T sl@0: #define BOOST_TEMPLATED_STREAM_ALLOC(A) A sl@0: sl@0: #define BOOST_TEMPLATED_STREAM(X,E,T) \ sl@0: BOOST_JOIN(std::basic_,X)< E , T > sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_WITH_ALLOC(X,E,T,A) \ sl@0: BOOST_JOIN(std::basic_,X)< E , T , A > sl@0: sl@0: #else // defined(BOOST_NO_STD_LOCALE) sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) /**/ sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_TEMPLATE_ALLOC(E,T,A) /**/ sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_ARGS(E,T) /**/ sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_ARGS_ALLOC(E,T,A) /**/ sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_COMMA /**/ sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_ELEM(E) char sl@0: #define BOOST_TEMPLATED_STREAM_TRAITS(T) std::char_traits sl@0: #define BOOST_TEMPLATED_STREAM_ALLOC(A) std::allocator sl@0: sl@0: #define BOOST_TEMPLATED_STREAM(X,E,T) \ sl@0: std::X sl@0: sl@0: #define BOOST_TEMPLATED_STREAM_WITH_ALLOC(X,E,T,A) \ sl@0: std::X sl@0: sl@0: #endif // BOOST_NO_STD_LOCALE sl@0: sl@0: #endif // BOOST_DETAIL_TEMPLATED_STREAMS_HPP