implement stringify for std::nullopt_t
This commit is contained in:
1 parent
2a19ae16b8
commit
3a5cde55b7
2 files changed
+10
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user