mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-07 20:09:58 -05:00
Update to C++20
This commit is contained in:
@@ -248,16 +248,18 @@ void RenderableSmallBody::readDataFile(const std::string& filename) {
|
||||
sequentialLineErrors = 0;
|
||||
}
|
||||
catch (std::invalid_argument&) {
|
||||
const char* errMsg = "Unable to convert field {} to double value "\
|
||||
"(invalid_argument exception). Ignoring line {}/{} of {}.";
|
||||
constexpr std::string_view errMsg = "Unable to convert field {} to "
|
||||
"double value (invalid_argument exception). Ignoring line {}/{} "
|
||||
"of {}.";
|
||||
LINFO(fmt::format(
|
||||
errMsg,
|
||||
fieldCount, csvLine + 1, numberOfLines, filename
|
||||
));
|
||||
}
|
||||
catch (std::out_of_range&) {
|
||||
const char* errMsg = "Unable to convert field {} to double value "\
|
||||
"(out_of_range exception). Ignoring line {}/{} of {}.";
|
||||
constexpr std::string_view errMsg = "Unable to convert field {} to "
|
||||
"double value (out_of_range exception). Ignoring line {}/{} of "
|
||||
"{}.";
|
||||
LINFO(fmt::format(
|
||||
errMsg,
|
||||
fieldCount, csvLine + 1, numberOfLines, filename
|
||||
|
||||
Reference in New Issue
Block a user