mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge pull request #8519 from magnesj/simplify-windows-env
Simplify GitHub Action and support windows-2022
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <QTextStream>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <numeric>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -186,7 +187,9 @@ bool RifEclipseUserDataParserTools::isANumber( const std::string& line )
|
||||
{
|
||||
try
|
||||
{
|
||||
std::stod( line );
|
||||
auto value = std::stod( line );
|
||||
if ( std::isinf( value ) || std::isnan( value ) ) return false;
|
||||
return true;
|
||||
}
|
||||
catch ( ... )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user