[LLVMdev] R600/SI build failure on Leopard (Use of C++11)

Tim Northover t.p.northover at gmail.com
Tue Nov 26 02:01:45 PST 2013


> Is that safely portable?  ie is it required that pre-C++11 std:vector be implemented such that the data is stored contiguously in a realloc'd array?

Yep. Very first paragraph of the std::vector description (23.2.4p1): "
The elements of a vector are stored contiguously, meaning that if v is
a vector<T, Allocator> where T is some type other than bool, then it
obeys the identity &v[n] == &v[0] + n for all 0 <= n < v.size()".

Cheers.

Tim.



More information about the llvm-dev mailing list