Skip to content

Commit a425029

Browse files
Apply patch for icpc (#78)
icpc in some way utilizes the preprocessor of the associated "developer tools" used by the compiler. This leads to, in some cases, a preprocessor claiming support for `__tuple_element_packs`, even though icpc (as of version 21.1) can't actually parse such code. Just use the MPARK_TUPLE_ELEMENT_PACK impl with __icc until icpc supports it. Fixes #77
1 parent 3c7fc82 commit a425029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mpark/config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#define MPARK_BUILTIN_UNREACHABLE
5151
#endif
5252

53-
#if __has_builtin(__type_pack_element)
53+
#if __has_builtin(__type_pack_element) && !(defined(__ICC))
5454
#define MPARK_TYPE_PACK_ELEMENT
5555
#endif
5656

0 commit comments

Comments
 (0)