Liang Wang <netcas...@gmail.com> writes: > Here is comment from line 36, gcc/vec.h > > Both the structure object and pointer variants > pass pointers to objects around -- in the former case the pointers > are stored into the vector and in the latter case the pointers are > dereferenced and the objects copied into the vector. > > But by reading implementation, it seems that this description is reverse. > I think that it should be something like > > in the *latter* case the pointers > are stored into the vector and in the *former* case the pointers are > dereferenced and the objects copied into the vector. > > That is, the pointers in structure object variant are dereferenced and > the objects copied into the vector.
I think you are correct and the comment is wrong. Ian