Fix Intel compiler issue #9 (compiler does not like CompressedTuple)

This commit is contained in:
greg
2019-05-15 08:59:29 -04:00
parent 9862cf2dcd
commit 9b205856e0
2 changed files with 8 additions and 7 deletions
+7 -1
View File
@@ -4275,7 +4275,13 @@ constexpr bool IsFinal() {
template <typename T>
constexpr bool ShouldUseBase() {
return std::is_class<T>::value && std::is_empty<T>::value && !IsFinal<T>();
#ifdef __INTEL_COMPILER
// avoid crash in Intel compiler
// assertion failed at: "shared/cfe/edgcpfe/lower_init.c", line 7013
return false;
#else
return std::is_class<T>::value && std::is_empty<T>::value && !IsFinal<T>();
#endif
}
// The storage class provides two specializations: