diff options
author | Adam Cozzette <acozzette@google.com> | 2018-03-14 13:12:11 -0700 |
---|---|---|
committer | Adam Cozzette <acozzette@google.com> | 2018-03-20 13:02:04 -0700 |
commit | 616fe05fc3451590568ff8b33d55662c0d27c5b0 (patch) | |
tree | 2f2161983bfa597cc0957836ccf2cf4041615a48 /src/google/protobuf/arena.h | |
parent | 837c94b86f10c53c5b7b864944ad86a362234009 (diff) | |
download | protobuf-616fe05fc3451590568ff8b33d55662c0d27c5b0.tar.gz protobuf-616fe05fc3451590568ff8b33d55662c0d27c5b0.tar.bz2 protobuf-616fe05fc3451590568ff8b33d55662c0d27c5b0.zip |
Removed use of some type traits
Pre-5.1.0 versions of GCC do not support these particular type traits
(see https://github.com/google/protobuf/issues/417).
Diffstat (limited to 'src/google/protobuf/arena.h')
-rw-r--r-- | src/google/protobuf/arena.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/arena.h b/src/google/protobuf/arena.h index f286ada8..9928c8e6 100644 --- a/src/google/protobuf/arena.h +++ b/src/google/protobuf/arena.h @@ -333,7 +333,7 @@ class LIBPROTOBUF_EXPORT Arena { template <typename T> GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE static T* CreateArray( Arena* arena, size_t num_elements) { - static_assert(std::is_trivially_default_constructible<T>::value, + static_assert(std::is_pod<T>::value, "CreateArray requires a trivially constructible type"); static_assert(std::is_trivially_destructible<T>::value, "CreateArray requires a trivially destructible type"); |