Changeset 53:c155c78f3ae6 in finroc_plugins_data_ports


Ignore:
Timestamp:
08.01.2014 16:29:30 (6 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
13.10
Phase:
public
Message:

Rewrote compiler-check to work with clang and gcc > 4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • type_traits.h

    r49 r53  
    7878struct tIsCheaplyCopiedType 
    7979{ 
    80 #if __GNUC__ == 4 && __GNUC_MINOR__ >= 8 
     80#if (! __clang__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)) 
     81  enum { value = std::has_trivial_destructor<T>::value && (sizeof(T) <= 256) }; 
     82#else 
    8183  enum { value = std::is_trivially_destructible<T>::value && (sizeof(T) <= 256) }; 
    82 #else 
    83   enum { value = std::has_trivial_destructor<T>::value && (sizeof(T) <= 256) }; 
    8484#endif 
    8585}; 
Note: See TracChangeset for help on using the changeset viewer.