[cxx-abi-dev] A mangling for std::nullptr_t
    David Vandevoorde 
    daveed at edg.com
       
    Tue Mar  2 16:31:02 UTC 2010
    
    
  
On Sep 18, 2009, at 6:15 PM, David Vandevoorde wrote:
> C++0x defines a typedef std::nullptr_t which aliases a unique (but unnamed) fundamental type.  That type needs a mangling code.
> 
> How about "Dn"?  I.e., adding the production
> 
> 	<builtin-type> ::= Dn
> 
> in the spec?
In addition to the mangling for std::nullptr_t, we also need an RTTI representation.  Since nullptr_t has special conversion requirements (e.g., throwing a nullptr_t value can be caught as a pointer or pointer-to-member value), we propose to add a new simple __nullptr_type_info class (no additional members), rather than e.g. trying to reuse __fundamental_type_info.
Attached are proposed diffs against the current spec.
	Daveed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nullptr.diffs
Type: application/octet-stream
Size: 2921 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20100302/4ed2b110/attachment.obj>
-------------- next part --------------
    
    
More information about the cxx-abi-dev
mailing list