|
Loading...
|
gcc@gcc.gnu.org
[Prev] Thread [Next] | [Prev] Date [Next]
Re: C++ ABI: name mangling of operator new [bug 6057] Doug Gregor Mon Jul 30 00:03:42 2007
On 7/26/07, Richard Smith <[EMAIL PROTECTED]> wrote:
template <class T>
class is_default_constructible {
template <int> struct helper {};
typedef char no; typedef char yes[2];
static no fn(...);
static yes fn( helper<sizeof(new T)>* );
public:
static const bool value = sizeof(fn(0)) == sizeof(yes);
};
I believe that should work with the (new) proposed resolution to DR 339. - Doug
- C++ ABI: name mangling of operator new [bug 6057] Richard Smith 2007/07/30
- Re: C++ ABI: name mangling of operator new [bug 6057] Doug Gregor 2007/07/30
- Re: C++ ABI: name mangling of operator new [bug 6057] Richard Smith 2007/07/30
- Re: C++ ABI: name mangling of operator new [bug 6057] Doug Gregor 2007/07/30
- Re: C++ ABI: name mangling of operator new [bug 6057] Richard Smith 2007/07/30
- Re: C++ ABI: name mangling of operator new [bug 6057] Doug Gregor 2007/07/30 <=
Re: C++ ABI: name mangling of operator new [bug 6057] Gabriel Dos Reis 2007/07/30
- Re: C++ ABI: name mangling of operator new [bug 6057] Richard Smith 2007/07/30
- Re: C++ ABI: name mangling of operator new [bug 6057] Gabriel Dos Reis 2007/07/30
- Re: C++ ABI: name mangling of operator new [bug 6057] Richard Smith 2007/07/30
- Re: C++ ABI: name mangling of operator new [bug 6057] Gabriel Dos Reis 2007/07/30