Skip to content

Commit

Permalink
third_party/re2: fix is_pod deprecation warning
Browse files Browse the repository at this point in the history
std::is_pod is deprecated in C++20. This was the noisiest of the
warnings in our codebase.
  • Loading branch information
Riolku committed Oct 25, 2023
1 parent bb5c8bd commit 314781c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/re2/include/pod_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace regex {
template<typename T>
class PODArray {
public:
static_assert(std::is_pod<T>::value, "T must be POD");
static_assert(std::is_trivial<T>::value && std::is_standard_layout<T>::value, "T must be POD");

PODArray() : ptr_() {}
explicit PODArray(int len) : ptr_(std::allocator<T>().allocate(len), Deleter(len)) {}
Expand Down

0 comments on commit 314781c

Please sign in to comment.