mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-29 00:00:08 +08:00
Remove one more vestige of pre-C++11 library support
a327c86a52c3 missed this one. Change-Id: Icbfc897b2f379641080dddc273b6279fc742f452 Reviewed-on: https://chromium-review.googlesource.com/727719 Reviewed-by: Leonard Mosescu <mosescu@chromium.org> Commit-Queue: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
c2cc76dc26
commit
025455e77a
@ -83,16 +83,10 @@ struct AlignedAllocator {
|
||||
return std::numeric_limits<size_type>::max() / sizeof(value_type);
|
||||
}
|
||||
|
||||
#if CXX_LIBRARY_VERSION < 2011
|
||||
void construct(pointer p, const T& val) {
|
||||
new (reinterpret_cast<void*>(p)) T(val);
|
||||
}
|
||||
#else
|
||||
template <class U, class... Args>
|
||||
void construct(U* p, Args&&... args) {
|
||||
new (reinterpret_cast<void*>(p)) U(std::forward<Args>(args)...);
|
||||
}
|
||||
#endif
|
||||
|
||||
template <class U>
|
||||
void destroy(U* p) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user