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.
2 parents 354cc8f + 0354550 commit 865f8f0Copy full SHA for 865f8f0
src/absl/strings/internal/string_constant.h
@@ -40,8 +40,12 @@ struct StringConstant {
40
41
// Check to be sure `view` points to constant data.
42
// Otherwise, it can't be constant evaluated.
43
+
44
+ // dd: doesn't work on Intel compilers, but also not used in S2
45
+#if !defined(__INTEL_COMPILER)
46
static_assert(value.empty() || 2 * value[0] != 1,
47
"The input string_view must point to constant data.");
48
+#endif
49
};
50
51
template <typename T>
0 commit comments