We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
constexpr
1 parent 90540d3 commit feb415fCopy full SHA for feb415f
include/stringzilla/stringzilla.hpp
@@ -341,8 +341,8 @@ class basic_byteset {
341
return *this;
342
}
343
344
- constexpr basic_byteset operator|(basic_byteset other) const noexcept {
345
- basic_byteset result = *this;
+ sz_constexpr_if_cpp14 basic_byteset operator|(basic_byteset other) const noexcept {
+ basic_byteset result = *this; //? Variable declaration in a `constexpr` function is a C++14 extension
346
result.bitset_._u64s[0] |= other.bitset_._u64s[0], result.bitset_._u64s[1] |= other.bitset_._u64s[1],
347
result.bitset_._u64s[2] |= other.bitset_._u64s[2], result.bitset_._u64s[3] |= other.bitset_._u64s[3];
348
return result;
0 commit comments