Report errors in string escape sequences more verbosely

This commit is contained in:
Thomas Krijnen
2016-07-19 16:41:36 +02:00
parent cd2b0c3a05
commit fd4086aa8d
3 changed files with 21 additions and 4 deletions
+10
View File
@@ -67,8 +67,18 @@ namespace IfcParse {
" invalid " + expected_type
)
{}
IfcInvalidTokenException(
int token_start,
char c
)
: IfcException(
std::string("Unexpected '") + std::string(1, c) + "' at " +
boost::lexical_cast<std::string>(token_start)
)
{}
~IfcInvalidTokenException() throw () {}
};
}
#ifdef _MSC_VER