From 2e00169ae7f30cf82293c4f4f90898838f7c8526 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sun, 17 Dec 2017 20:16:23 +0100 Subject: [PATCH] Explicitly cast wxString to std::string when throwing std::exception --- include/eagle_parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/eagle_parser.h b/include/eagle_parser.h index 2986422e75..e37395ffba 100644 --- a/include/eagle_parser.h +++ b/include/eagle_parser.h @@ -73,7 +73,7 @@ struct XML_PARSER_ERROR : std::runtime_error * @param aMessage is an explanatory error message. */ XML_PARSER_ERROR( const wxString& aMessage ) noexcept : - std::runtime_error( "XML parser failed - " + aMessage ) + std::runtime_error( "XML parser failed - " + aMessage.ToStdString() ) {} };