Boost logo

Boost :

Subject: [boost] [optional_io] Request permission to merge simple fix to optional extraction operator
From: Fernando Cacciola (fernando.cacciola_at_[hidden])
Date: 2010-07-20 14:28:05


Hi All,

It was brought to my attention that extracting an *empty* optional<> from a
stream using the default provided operators (in optional_io.hpp), leaves one
character behind, preventing any further extraction.

This is clearly a bug so I can only guess that no one is using it (except for
the user that reported it).

The fix is quite trivial:

https://svn.boost.org/trac/boost/changeset/64206

And I've updated the test accordingly to make sure it works.

Can I marge the fix into the release branch?

TIA

---
Fernando Cacciola
SciSoft Consulting, Founder
http://www.scisoft-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk