Skip to content

Commit 865f8f0

Browse files
authored
Merge pull request #200 from r-spatial/compile-on-icc
Fix build on intel compilers
2 parents 354cc8f + 0354550 commit 865f8f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/absl/strings/internal/string_constant.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ struct StringConstant {
4040

4141
// Check to be sure `view` points to constant data.
4242
// 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)
4346
static_assert(value.empty() || 2 * value[0] != 1,
4447
"The input string_view must point to constant data.");
48+
#endif
4549
};
4650

4751
template <typename T>

0 commit comments

Comments
 (0)