diff --git a/include/boost/blank.hpp b/include/boost/blank.hpp index f84f2d9..d0fe5ab 100644 --- a/include/boost/blank.hpp +++ b/include/boost/blank.hpp @@ -15,9 +15,11 @@ #include "boost/blank_fwd.hpp" +#if !defined(BOOST_NO_IOSTREAM) #include // for std::basic_ostream forward declare - #include "boost/detail/templated_streams.hpp" +#endif // BOOST_NO_IOSTREAM + #include "boost/mpl/bool.hpp" #include "boost/type_traits/is_empty.hpp" #include "boost/type_traits/is_pod.hpp" @@ -85,6 +87,8 @@ inline bool operator>(const blank&, const blank&) // streaming support // +#if !defined(BOOST_NO_IOSTREAM) + BOOST_TEMPLATED_STREAM_TEMPLATE(E,T) inline BOOST_TEMPLATED_STREAM(ostream, E,T)& operator<<( BOOST_TEMPLATED_STREAM(ostream, E,T)& out @@ -95,6 +99,8 @@ inline BOOST_TEMPLATED_STREAM(ostream, E,T)& operator<<( return out; } +#endif // BOOST_NO_IOSTREAM + } // namespace boost #endif // BOOST_BLANK_HPP