Displaying 1 result from an estimated 1 matches for "2cb71ad7".
2017 Oct 01
2
Is ArrayRef supposed to be immutable?
It wraps a constant T* and a size_t, so I'm surprised std::sort works. It
shouldn't.
On Sep 30, 2017 5:22 PM, "Daniel Berlin via llvm-dev" <
llvm-dev at lists.llvm.org> wrote:
It seems like ArrayRefs are supposed to be immutable (
However, as far as i can tell, the iterators are defined wrong to make this
true.
While
ArrayRef<int> Foo(Something);
Foo[0] = 5;
will