
5 May
2011
5 May
'11
3:17 p.m.
Den 05-05-2011 16:53, Thorsten Ottosen skrev:
Den 05-05-2011 16:48, Marsh Ray skrev:
On 05/05/2011 05:52 AM, Thorsten Ottosen wrote:
T* has the distict advantage that it is optimally efficient, even though that optional<T&> might slightly be more type-safe.
sizeof(T*) is guaranteed to be nonzero, and in practice is 4 or 8 bytes, whereas references are allowed to have no size at all.
Can you mention just one ABI where references are merely pointers?
... not merely ... -Thorsten