Switched exception constants to const char * const (from const std::string) so we don't have to construct them all in every translation unit, and switched the exception class to derive from std::runtime_error (so it handles what() for us)

This commit is contained in:
Jesse Beder
2011-03-02 04:12:57 +00:00
parent d1cb1aa74f
commit c65a7dfc7c
5 changed files with 69 additions and 68 deletions

View File

@@ -107,7 +107,7 @@ namespace YAML
}
std::stringstream msg;
throw ParserException(in.mark(), ErrorMsg::INVALID_ESCAPE + ch);
throw ParserException(in.mark(), std::string(ErrorMsg::INVALID_ESCAPE) + ch);
}
}
}