diff --git a/include/boost/iostreams/operations.hpp b/include/boost/iostreams/operations.hpp index c3f856a..91947ca 100755 --- a/include/boost/iostreams/operations.hpp +++ b/include/boost/iostreams/operations.hpp @@ -15,7 +15,6 @@ #include // BOOST_NO_STD_LOCALE. #include #include -#include #include #include #include @@ -186,18 +185,6 @@ struct write_impl { { t.sputn(s, n); } }; -template<> -struct write_impl { - template - static void put(T& t, BOOST_IOSTREAMS_CHAR_TYPE(T) c) - { *t++ = c; } - - template - static void write( T& t, const typename iter_val::type* s, - std::streamsize n ) - { while (n--) *t++ = *s++; } -}; - template<> struct seek_impl { template @@ -340,7 +327,7 @@ template void put(T& t, BOOST_IOSTREAMS_CHAR_TYPE(T) c) { typedef typename detail::dispatch< - T, ostream_tag, streambuf_tag, insert_iterator_tag, output + T, ostream_tag, streambuf_tag, output >::type tag; detail::write_impl::put(detail::unwrap(t), c); } @@ -350,7 +337,7 @@ inline void write(T& t, const BOOST_IOSTREAMS_CHAR_TYPE(T)* s, std::streamsize n) { typedef typename detail::dispatch< - T, ostream_tag, streambuf_tag, insert_iterator_tag, output + T, ostream_tag, streambuf_tag, output >::type tag; detail::write_impl::write(detail::unwrap(t), s, n); }