diff --git a/third_party/re2/include/pod_array.h b/third_party/re2/include/pod_array.h index dc9c1a0183..fa664d1713 100644 --- a/third_party/re2/include/pod_array.h +++ b/third_party/re2/include/pod_array.h @@ -14,7 +14,7 @@ namespace regex { template class PODArray { public: - static_assert(std::is_pod::value, "T must be POD"); + static_assert(std::is_trivial::value && std::is_standard_layout::value, "T must be POD"); PODArray() : ptr_() {} explicit PODArray(int len) : ptr_(std::allocator().allocate(len), Deleter(len)) {}