mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-01 17:37:57 +00:00
implement stringify for std::nullopt_t
This commit is contained in:
parent
2a19ae16b8
commit
3a5cde55b7
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue