mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
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:
committed by
Copybara-Service
parent
351086314d
commit
852fc61f31
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user