Connecting Tech Pros Worldwide Help | Site Map

?pointer to cv void? points to the start of the storage location...

Steven T. Hatton
Guest
 
Posts: n/a
#1: Dec 14 '06
I simply don't get this one: § 4.9/2 "An rvalue of type ?pointer to cv T,?
where T is an object type, can be converted to an rvalue of type ?pointer
to cv void.? The result of converting a ?pointer to cv T? to a ?pointer to
cv void? points to the start of the storage location where the object of
type T resides, as if the object is a most derived object (1.8) of type T
(that is, not a base class subobject)."

Is it saying that the original pointer cv T t* might be pointing to
somewhere inside (offset from the starting address) of the complete object
pointed to?

--
NOUN:1. Money or property bequeathed to another by will. 2. Something handed
down from an ancestor or a predecessor or from the past: a legacy of
religious freedom. ETYMOLOGY: MidE legacie, office of a deputy, from OF,
from ML legatia, from L legare, to depute, bequeath. www.bartleby.com/61/
Noah Roberts
Guest
 
Posts: n/a
#2: Dec 14 '06

re: ?pointer to cv void? points to the start of the storage location...



Steven T. Hatton wrote:
Quote:
I simply don't get this one: § 4.9/2 "An rvalue of type ?pointer to cv T,?
where T is an object type, can be converted to an rvalue of type ?pointer
to cv void.? The result of converting a ?pointer to cv T? to a ?pointer to
cv void? points to the start of the storage location where the object of
type T resides, as if the object is a most derived object (1.8) of type T
(that is, not a base class subobject)."
>
Is it saying that the original pointer cv T t* might be pointing to
somewhere inside (offset from the starting address) of the complete object
pointed to?
Yes.

Closed Thread


Similar C / C++ bytes