testsuite: fix Wmismatched-new-delete-8.C with -m32
This fixes error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive] gcc/testsuite/ChangeLog: * g++.dg/warn/Wmismatched-new-delete-8.C: Use __SIZE_TYPE__.
This commit is contained in:
parent
37127ed975
commit
d34d7c74d5
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ static inline T * construct_at(void *at, ARGS && args)
|
|||
struct Placeable : T
|
||||
{
|
||||
Placeable(ARGS && args) : T(args) { }
|
||||
void * operator new (long unsigned int, void *ptr) { return ptr; }
|
||||
void * operator new (__SIZE_TYPE__, void *ptr) { return ptr; }
|
||||
void operator delete (void *, void *) { }
|
||||
};
|
||||
return new (at) Placeable(static_cast<ARGS &&>(args));
|
||||
|
|
Loading…
Add table
Reference in a new issue