PetScan::extract_for: also call can_wrap on non-simple bounds
commit7d228c8ef37938e21cfc27e043b0e5f7adb966d7
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 19 Jan 2012 13:18:45 +0000 (19 14:18 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 6 Mar 2012 11:54:11 +0000 (6 12:54 +0100)
treedea988dfbbd7c29baa4aa3c8b28a8c2ece26f4d0
parentc5656d20bec3475e4e2feb5ad688094f74d1e279
PetScan::extract_for: also call can_wrap on non-simple bounds

The function was documented as requiring a simple bound as input,
but the implemenation does not depend on this property.
By also calling can_wrap on non-simple bound, we can avoid
the introduction of a virtual iterator in some cases.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc