mirror of https://github.com/KLayout/klayout.git
gcc 4.x (CentOS 7) does not support all C++11 type traits
This commit is contained in:
parent
9aed8529f8
commit
0c142c9252
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue