Index: concept_adapter.hpp =================================================================== --- concept_adapter.hpp (revision 65572) +++ concept_adapter.hpp (working copy) @@ -106,7 +106,10 @@ template bool flush( Device* dev ) { - return any_impl::flush(t_, dev); + bool result = any_impl::flush(t_, dev); + if (dev && dev->BOOST_IOSTREAMS_PUBSYNC() == -1) + result = false; + return result; } template // Avoid dependency on