Fix build on gcc < 5 (std::is_trivially_copyable missing)
[deliverable/binutils-gdb.git] / gdb / common / poison.h
index a875568d97c83e2dbc9b850ee9cdcf728190876a..37dd35e4b16abe4c7f89e3a52bbe2af4669c6513 100644 (file)
@@ -55,6 +55,8 @@ template <typename T,
          typename = gdb::Requires<gdb::Not<IsMemsettable<T>>>>
 void *memset (T *s, int c, size_t n) = delete;
 
+#if HAVE_IS_TRIVIALLY_COPYABLE
+
 /* Similarly, poison memcpy and memmove of non trivially-copyable
    types, which is undefined.  */
 
@@ -80,4 +82,6 @@ template <typename D, typename S,
          typename = gdb::Requires<gdb::Not<BothAreRelocatable<D, S>>>>
 void *memmove (D *dest, const S *src, size_t n) = delete;
 
+#endif /* HAVE_IS_TRIVIALLY_COPYABLE */
+
 #endif /* COMMON_POISON_H */
This page took 0.026099 seconds and 4 git commands to generate.