Accessors for exceptions.

This commit is contained in:
chriseth
2021-12-01 14:26:23 +01:00
parent cc2a8609d6
commit b6bd85202c
7 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ void SyntaxTest::parseAndAnalyze()
int locationStart = -1;
int locationEnd = -1;
if (auto location = boost::get_error_info<errinfo_sourceLocation>(*error))
if (SourceLocation const* location = error->sourceLocation())
{
locationStart = location->start;
locationEnd = location->end;