Bug 8208 – BitArray.opApply does not work on const(BitArray)

Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-06-08T00:28:00Z
Last change time
2014-04-24T19:27:55Z
Assigned to
nobody
Creator
xammy

Comments

Comment #0 by xammy — 2012-06-08T00:28:00Z
BitArray.opApply has signatures for (ref index, ref value) and (ref value) traversal, but it both do not work on const bit arrays. Of course assignment via ref parameter is not allowed, but traversal of the 0's and 1's is a common operation.
Comment #1 by andrej.mitrovich — 2014-04-24T19:27:55Z
Seems to work now, I can also see there's const versions of opApply.