Don't use deprecated std::allocator<T>::allocate() overload in base::StackContainer

`allocate()` with a hint is deprecated in C++17 and removed in C++20.
Note that while `allocate(size_t)` isn't provided prior to C++17,
`allocate(size_t, void* = nullptr)` is and will behave equivalently.

Patch from
https://chromium-review.googlesource.com/c/chromium/src/+/2131045.

BUG=b:162949739
TEST=CQ passes

Change-Id: I250ed52c4fbbb2b7963ba33b15c525b9adcab54a
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/external/libchrome/+/2341791
Tested-by: Tom Hughes <tomhughes@chromium.org>
Auto-Submit: Tom Hughes <tomhughes@chromium.org>
Commit-Queue: Tom Hughes <tomhughes@chromium.org>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
2 files changed
tree: bfc32074d1247e9c71d891867810e9f9407d4396
  1. base/
  2. build/
  3. components/
  4. crypto/
  5. dbus/
  6. device/
  7. ipc/
  8. libchrome_tools/
  9. mojo/
  10. soong/
  11. testing/
  12. third_party/
  13. ui/
  14. .gitignore
  15. Android.bp
  16. BASE_VER
  17. BUILD.gn
  18. BUILD.IGNORE
  19. MODULE_LICENSE_BSD
  20. NOTICE
  21. OWNERS
  22. PRESUBMIT.cfg
  23. README.md
  24. testrunner.cc
README.md

libchrome

Overview

This directory includes the source from Chrome's libbase for use in Chrome OS.

See libchrome.md for more info.