Revert "Fix the alignment of placement new buffer for GenericValue."
This commit is contained in:
parent
bf8ca5da88
commit
88bbd87ddd
@ -1235,8 +1235,8 @@ public:
|
||||
// return NullValue;
|
||||
|
||||
// Use static buffer and placement-new to prevent destruction
|
||||
static GenericValid buffer;
|
||||
return *new (reinterpret_cast<char *>(&buffer)) GenericValue();
|
||||
static char buffer[sizeof(GenericValue)];
|
||||
return *new (buffer) GenericValue();
|
||||
}
|
||||
}
|
||||
template <typename SourceAllocator>
|
||||
|
Loading…
x
Reference in New Issue
Block a user