From 8e0727ecbcd3a72a5d2659aa9cbd00afc0537cfb Mon Sep 17 00:00:00 2001 From: Florian Dollinger Date: Mon, 7 Dec 2020 23:25:49 +0100 Subject: [PATCH] added noexcept to what() --- yaml-path/yaml-path.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml-path/yaml-path.h b/yaml-path/yaml-path.h index 567f593..e80b1ae 100644 --- a/yaml-path/yaml-path.h +++ b/yaml-path/yaml-path.h @@ -112,7 +112,7 @@ namespace YAML std::size_t ErrorOffset() const { return m_offsTokenScan; } ///< index into the full path where the error occurred std::optional BoundArg() const { return m_fromBoundArg; } ///< if token was taken from a bound argument, this is its index - char const * what() const override { return What().c_str(); } ///< overrides \c std::exception::what, returning the detailed error message from \ref What + char const * what() const noexcept override { return What().c_str(); } ///< overrides \c std::exception::what, returning the detailed error message from \ref What std::string const & What(bool detailed = true) const; static std::string GetErrorMessage(EPathError error);