Skip to content

Commit e676a8d

Browse files
authored
Merge pull request #51 from victorjarlow/fix_isnan_template
Bug fix where isnan <double> template specifier causes compilation errors
2 parents c0616df + e393014 commit e676a8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/RefLine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ double RefLine::get_geometry_s0(const double s) const
5050
const RoadGeometry* RefLine::get_geometry(const double s) const
5151
{
5252
const double geom_s0 = this->get_geometry_s0(s);
53-
if (std::isnan<double>(geom_s0))
53+
if (std::isnan(geom_s0))
5454
return nullptr;
5555
return this->s0_to_geometry.at(geom_s0).get();
5656
}

src/Road.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Vec3D Road::get_surface_pt(double s, const double t, Vec3D* vn) const
139139
CHECK_AND_REPAIR(s <= this->length, "s > Road::length", s = this->length);
140140

141141
const double lanesection_s0 = this->get_lanesection_s0(s);
142-
if (std::isnan<double>(lanesection_s0))
142+
if (std::isnan(lanesection_s0))
143143
{
144144
throw std::runtime_error(string_format("cannot get road surface pt, no lane section for s %.3f, road length: %.3f", s, this->length));
145145
}

0 commit comments

Comments
 (0)