gcc 4.x (CentOS 7) does not support all C++11 type traits

This commit is contained in:
klayoutmatthias 2021-12-11 18:56:44 +00:00
parent 9aed8529f8
commit 0c142c9252
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include <stdlib.h>
#include <iterator>
#include <type_traits>
#include <vector>
#include <cstring>
@ -491,7 +492,12 @@ private:
* One requirement is that sizeof(C) >= sizeof(void *).
*/
#if __GNUC__ >= 5
template <class Value, bool trivial_relocate = std::is_trivially_copy_constructible<Value>::value>
#else
// no support for extended type traits in gcc 4.x
template <class Value, bool trivial_relocate = false>
#endif
class reuse_vector
{
public: