mirror of
https://github.com/boostorg/detail.git
synced 2025-07-31 12:57:14 +02:00
Support BOOST_NO_TYPEID and BOOST_NO_IOSTREAM in Boost.Variant. Fixes #3051.
[SVN r53682]
This commit is contained in:
@@ -15,9 +15,11 @@
|
|||||||
|
|
||||||
#include "boost/blank_fwd.hpp"
|
#include "boost/blank_fwd.hpp"
|
||||||
|
|
||||||
|
#if !defined(BOOST_NO_IOSTREAM)
|
||||||
#include <iosfwd> // for std::basic_ostream forward declare
|
#include <iosfwd> // for std::basic_ostream forward declare
|
||||||
|
|
||||||
#include "boost/detail/templated_streams.hpp"
|
#include "boost/detail/templated_streams.hpp"
|
||||||
|
#endif // BOOST_NO_IOSTREAM
|
||||||
|
|
||||||
#include "boost/mpl/bool.hpp"
|
#include "boost/mpl/bool.hpp"
|
||||||
#include "boost/type_traits/is_empty.hpp"
|
#include "boost/type_traits/is_empty.hpp"
|
||||||
#include "boost/type_traits/is_pod.hpp"
|
#include "boost/type_traits/is_pod.hpp"
|
||||||
@@ -85,6 +87,8 @@ inline bool operator>(const blank&, const blank&)
|
|||||||
|
|
||||||
// streaming support
|
// streaming support
|
||||||
//
|
//
|
||||||
|
#if !defined(BOOST_NO_IOSTREAM)
|
||||||
|
|
||||||
BOOST_TEMPLATED_STREAM_TEMPLATE(E,T)
|
BOOST_TEMPLATED_STREAM_TEMPLATE(E,T)
|
||||||
inline BOOST_TEMPLATED_STREAM(ostream, E,T)& operator<<(
|
inline BOOST_TEMPLATED_STREAM(ostream, E,T)& operator<<(
|
||||||
BOOST_TEMPLATED_STREAM(ostream, E,T)& out
|
BOOST_TEMPLATED_STREAM(ostream, E,T)& out
|
||||||
@@ -95,6 +99,8 @@ inline BOOST_TEMPLATED_STREAM(ostream, E,T)& operator<<(
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // BOOST_NO_IOSTREAM
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#endif // BOOST_BLANK_HPP
|
#endif // BOOST_BLANK_HPP
|
||||||
|
Reference in New Issue
Block a user