We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ec982 commit e808799Copy full SHA for e808799
include/xsimd/xsimd.hpp
@@ -63,7 +63,16 @@
63
#include "memory/xsimd_aligned_allocator.hpp"
64
65
#if defined(XSIMD_NO_SUPPORTED_ARCHITECTURE)
66
-// to type definition or anything appart from scalar definition and aligned allocator
+// no type definition or anything apart from scalar definition and aligned allocator
67
+namespace xsimd
68
+{
69
+ template <class T, class A = void>
70
+ class batch
71
+ {
72
+ static constexpr bool supported_architecture = sizeof(A*) == 0; // type-dependant but always false
73
+ static_assert(supported_architecture, "No SIMD architecture detected, cannot instantiate a batch");
74
+ };
75
+}
76
#else
77
#include "types/xsimd_batch.hpp"
78
#include "types/xsimd_batch_constant.hpp"
0 commit comments