Remove more lingering C++17 type traits polyfill usages

This will let us deprecate the declarations without triggering warnings in Abseil itself.

PiperOrigin-RevId: 906360966
Change-Id: Iee362ac0eac647909ef38003280f1179813f764d
This commit is contained in:
Abseil Team
2026-04-27 08:03:04 -07:00
committed by Copybara-Service
parent 351086314d
commit 852fc61f31
65 changed files with 341 additions and 339 deletions

View File

@@ -15,6 +15,7 @@
#include "absl/debugging/internal/demangle.h"
#include <cstdlib>
#include <memory>
#include <string>
#include "gmock/gmock.h"
@@ -2000,7 +2001,7 @@ TEST(Demangle, DemangleStackConsumption) {
static void TestOnInput(const char* input) {
static const int kOutSize = 1048576;
auto out = absl::make_unique<char[]>(kOutSize);
auto out = std::make_unique<char[]>(kOutSize);
Demangle(input, out.get(), kOutSize);
}

View File

@@ -136,7 +136,7 @@ static const char *TrySymbolizeWithLimit(void *pc, int limit) {
<< "try_symbolize_buffer is too small";
// Use the heap to facilitate heap and buffer sanitizer tools.
auto heap_buffer = absl::make_unique<char[]>(sizeof(try_symbolize_buffer));
auto heap_buffer = std::make_unique<char[]>(sizeof(try_symbolize_buffer));
bool found = absl::Symbolize(pc, heap_buffer.get(), limit);
if (found) {
CHECK_LT(static_cast<int>(