[PATCH] D20719: Remove use of is_trivially_constructible.

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 19:51:44 PDT 2016


majnemer added a subscriber: majnemer.
majnemer accepted this revision.
majnemer added a reviewer: majnemer.
majnemer added a comment.
This revision is now accepted and ready to land.

LGTM


================
Comment at: include/llvm/DebugInfo/CodeView/StreamArray.h:114-115
@@ -113,4 +113,2 @@
   friend class FixedStreamArrayIterator<T>;
-  static_assert(std::is_trivially_constructible<T>::value,
-                "FixedStreamArray must be used with trivial types");
 
----------------
You could go with `std::is_standard_layout<T>::value && std::is_trivial<T>::value` to get more or less the same thing.


http://reviews.llvm.org/D20719





More information about the llvm-commits mailing list