Homec4science

intbitset: initialization from iterator

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Mar 28 2014, 11:38.

Description

intbitset: initialization from iterator

  • Fixes initialization from an iterator, by peeking for the iterator protocol signature in the object used to initialize an intbitset data structure thus avoiding calling max() in case pre-allocation is needed, which would consume the whole iterator before allowing the data to be extracted (and that would crash when max() is called on an empty iterator). (closes #1698)

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>

Details

Committed
Samuele Kaplun <samuele.kaplun@cern.ch>Apr 8 2014, 11:53
Parents
R3600:6cfac47dfe32: BibField: backported improvements from pu
Branches
Unknown
Tags
Unknown

Event Timeline

Samuele Kaplun <samuele.kaplun@cern.ch> committed R3600:4130ae882093: intbitset: initialization from iterator (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Apr 8 2014, 11:53