Ensure platform-independent output from SpecialException::what

This commit is contained in:
Martin Hořeňovský
2018-05-12 20:37:13 +02:00
parent 6c5c4c43a0
commit e5fe3e877a
6 changed files with 20 additions and 16 deletions

View File

@@ -45,6 +45,10 @@ namespace { namespace MatchersTests {
struct SpecialException : std::exception {
SpecialException(int i_) : i(i_) {}
char const* what() const noexcept override {
return "SpecialException::what";
}
int i;
};