Ticket #4590: boost_4590_correction.diff

File boost_4590_correction.diff, 539 bytes (added by Mike Tryhorn <miketryhorn@…>, 12 years ago)

Correction to concept_adapter.hpp for boost 1.44.0.

  • concept_adapter.hpp

     
    106106    template<typename Device>
    107107    bool flush( Device* dev )
    108108    {
    109         return any_impl::flush(t_, dev);
     109        bool result = any_impl::flush(t_, dev);
     110        if (dev && dev->BOOST_IOSTREAMS_PUBSYNC() == -1)
     111            result = false;
     112        return result;
    110113    }
    111114
    112115    template<typename Locale> // Avoid dependency on <locale>