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:

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

Can I marge the fix into the release branch?


Fernando Cacciola
SciSoft Consulting, Founder

Boost list run by bdawes at, gregod at, cpdaniel at, john at