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
Attachment:
nullptr.diffs
Description: Binary data