stdlib: Make the bound vector an alias in std::deque

Workaround for issue #375
This commit is contained in:
Brian Anderson 2011-05-23 19:45:51 -04:00
parent edf95efae8
commit 8637c09cf9

View file

@ -30,8 +30,10 @@ fn create[T]() -> t[T] {
fn grow[T](uint nelts, uint lo, vec[cell[T]] elts) -> vec[cell[T]] {
assert (nelts == vec::len[cell[T]](elts));
// FIXME: Making the vector argument an alias is a workaround for
// issue #375
fn fill[T](uint i, uint nelts, uint lo,
vec[cell[T]] old) -> cell[T] {
&vec[cell[T]] old) -> cell[T] {
ret if (i < nelts) {
old.((lo + i) % nelts)
} else {