This commit is contained in:
2025-10-23 12:13:07 +03:00
parent 80ec2382ea
commit 412f038eb0
2 changed files with 92 additions and 9 deletions

View File

@@ -203,6 +203,7 @@ concept mcc_coord_epoch_c = std::derived_from<T, mcc_coord_epoch_interface_t> &&
template <typename T>
concept mcc_error_c = std::default_initializable<T> && (std::convertible_to<T, bool> || requires(const T t) {
{ t.value() } -> std::formattable<char>;
{ t.operator bool() };
(bool)T() == false; // default constucted value must be a "non-error"!
});