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 216fb3e commit ba62d07Copy full SHA for ba62d07
src/common/utils_proto.h
@@ -275,6 +275,10 @@ namespace fb_utils
275
bool isBpbSegmented(unsigned parLength, const unsigned char* par);
276
277
278
+ // Workaround, to be removed with C++ 23
279
+ template <typename... T>
280
+ constexpr bool fb_always_false_v = false;
281
+
282
// Put integer value into info buffer
283
template<typename T>
284
inline unsigned char* putInfoItemInt(const unsigned char item, T value,
@@ -308,7 +312,7 @@ namespace fb_utils
308
312
else if constexpr (len == sizeof(char))
309
313
*ptr = value;
310
314
else
311
- static_assert(always_false<T>::value, "unknown data type");
315
+ static_assert(fb_always_false_v<T>, "unknown data type");
316
317
ptr += len;
318
return ptr;
0 commit comments