From 90327eb81b9b336011d7115e30b019f3da80e2f3 Mon Sep 17 00:00:00 2001 From: deannagarcia <69992229+deannagarcia@users.noreply.github.com> Date: Tue, 26 Jan 2021 13:04:02 -0800 Subject: [PATCH] Fix std::is_pod deprecated --- src/google/protobuf/generated_message_table_driven_lite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/generated_message_table_driven_lite.h b/src/google/protobuf/generated_message_table_driven_lite.h index 6813d18bd..db4234e53 100644 --- a/src/google/protobuf/generated_message_table_driven_lite.h +++ b/src/google/protobuf/generated_message_table_driven_lite.h @@ -87,7 +87,7 @@ inline ExtensionSet* GetExtensionSet(MessageLite* msg, int64 extension_offset) { template inline Type* AddField(MessageLite* msg, int64 offset) { - static_assert(std::is_pod::value, + static_assert(std::is_standard_layout::value && std::is_trivial::value, "Do not assign"); RepeatedField* repeated = Raw>(msg, offset);