ahundt/Boost.StaticVector — Issue #3: Iterator constructor requires a random access iterator
Author: ahundt
Created: 2011-10-12 09:25:31+00:00
State: open

Comment by Nevin Liber nevin@eviloverlord.com:

And sometimes [the caller of a function checking preconditions]
is less efficient. For instance, if you are populating
from StaticVector from list iterators (or any non-random access
iterators), it's an O(n) check ahead of time or a complicated wrapper
around a one-at-a-time insert. (Note: this is a bug in the current
implementation of StaticVector, as its iterator constructor currently
requires random access iterators).