implement stringify for std::nullopt_t

This commit is contained in:
Martin Jeřábek authored and Martin Hořeňovský committed 2023-08-30 16:21:02 +02:00
1 parent 2a19ae16b8
commit 3a5cde55b7
2 files changed
+10

No files matched your search

+6
View File
@@ -398,6 +398,12 @@ namespace Catch {
}
}
};
template <>
struct StringMaker<std::nullopt_t> {
static std::string convert(const std::nullopt_t&) {
return "{ }";
}
};
}
#endif // CATCH_CONFIG_ENABLE_OPTIONAL_STRINGMAKER