ソースを参照

Also change is_trivially_copy_constructible to std::is_trivial.

Joshua Haberman 4 年 前
コミット
fc1cfb0174
1 ファイル変更1 行追加2 行削除
  1. 1 2
      src/google/protobuf/repeated_field.h

+ 1 - 2
src/google/protobuf/repeated_field.h

@@ -500,8 +500,7 @@ namespace internal {
 // shouldn't be necessary, but our compiler doesn't optimize std::copy very
 // shouldn't be necessary, but our compiler doesn't optimize std::copy very
 // effectively.
 // effectively.
 template <typename Element,
 template <typename Element,
-          bool HasTrivialCopy =
-              std::is_trivially_copy_constructible<Element>::value>
+          bool HasTrivialCopy = std::is_trivial<Element>::value>
 struct ElementCopier {
 struct ElementCopier {
   void operator()(Element* to, const Element* from, int array_size);
   void operator()(Element* to, const Element* from, int array_size);
 };
 };