add returns in static_assert(false) functions so gcc won't complain

This commit is contained in:
Martin Michelsen
2022-04-03 23:39:01 -07:00
parent 54f01713bc
commit c23fe6211e
+2
View File
@@ -121,6 +121,7 @@ template <typename DestT, typename SrcT = DestT>
size_t text_strncpy_t(DestT*, size_t, const SrcT*, size_t) {
static_assert(always_false<DestT, SrcT>::v,
"unspecialized text_strncpy_t should never be called");
return 0;
}
template <>
@@ -153,6 +154,7 @@ template <typename DestT, typename SrcT = DestT>
size_t text_strnzcpy_t(DestT*, size_t, const SrcT*, size_t) {
static_assert(always_false<DestT, SrcT>::v,
"unspecialized text_strnzcpy_t should never be called");
return 0;
}
template <>