Ticket #1920: tuple_io.patch

File tuple_io.patch, 1020 bytes (added by Bryan Green <bryan.d.green@…>, 14 years ago)

a patch to tuple_io.hpp to fix the bug.

  • tuple_io.hpp

     
    3030#endif 
    3131
    3232#include "boost/tuple/tuple.hpp"
     33#include "boost/io/ios_state.hpp"
    3334
    3435// This is ugly: one should be using twoargument isspace since whitspace can
    3536// be locale dependent, in theory at least.
     
    413414
    414415  detail::extract_and_check_delimiter(is, detail::format_info::open);
    415416                     
    416   detail::read(is, t1);
     417  {
     418      io::ios_flags_saver s(is);
     419      is >> std::skipws;
     420      detail::read(is, t1);
     421  }
    417422   
    418423  detail::extract_and_check_delimiter(is, detail::format_info::close);
    419424
     
    508513
    509514  detail::extract_and_check_delimiter(is, detail::format_info::open);
    510515                     
    511   detail::read(is, t1);
     516  {
     517      io::ios_flags_saver s(is);
     518      is >> std::skipws;
     519      detail::read(is, t1);
     520  }
    512521   
    513522  detail::extract_and_check_delimiter(is, detail::format_info::close);
    514523