This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
misleading description in vec.h?
- From: Liang Wang <netcasper at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 26 Sep 2011 23:15:26 +0800
- Subject: misleading description in vec.h?
Hi,
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.
Am I missing something?
Thanks,
Liang.