stdlib: Make the bound vector an alias in std::deque
Workaround for issue #375
This commit is contained in:
parent
edf95efae8
commit
8637c09cf9
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue