| Index: src/vector.h
|
| diff --git a/src/vector.h b/src/vector.h
|
| index 1b9884f4d7915454184195b11be64df477c29bdf..eb5808322c731f404c3ff2b2d1cfcc2490b78526 100644
|
| --- a/src/vector.h
|
| +++ b/src/vector.h
|
| @@ -119,6 +119,9 @@ class Vector {
|
| return Vector<T>(start_ + offset, length_ - offset);
|
| }
|
|
|
| + // Implicit conversion from Vector<T> to Vector<const T>.
|
| + inline operator Vector<const T>() { return Vector<const T>::cast(*this); }
|
| +
|
| // Factory method for creating empty vectors.
|
| static Vector<T> empty() { return Vector<T>(NULL, 0); }
|
|
|
|
|