This commit is contained in:
Maxime Gimeno 2020-07-16 14:47:41 +02:00
parent d303009496
commit 41175cd505
3 changed files with 6 additions and 5 deletions

View File

@ -164,7 +164,8 @@ public:
double maxVal = ( core_abs(val) + maxAbs / x.maxAbs) / xxx + DBL_MIN;
return filteredFp(val, maxVal, 1 + core_max(ind, x.ind + 1));
} else
return filteredFp( std::nan(""), getDoubleInfty(), 1);
//TODO: check that
return filteredFp( std::strtod("NAN", (char**)NULL), getDoubleInfty(), 1);
}
/// square root
filteredFp sqrt () const {

View File

@ -799,7 +799,7 @@ public:
{
Property_map<T> pm;
bool added = false;
std::tie (pm, added) = m_base.template add<T> (name, t);
boost::tie (pm, added) = m_base.template add<T> (name, t);
return std::make_pair (pm, added);
}
@ -820,7 +820,7 @@ public:
{
Property_map<T> pm;
bool okay = false;
std::tie (pm, okay) = m_base.template get<T>(name);
boost::tie (pm, okay) = m_base.template get<T>(name);
return std::make_pair (pm, okay);
}
@ -864,7 +864,7 @@ public:
std::pair<Vector_map, bool> add_normal_map (const Vector& default_value = CGAL::NULL_VECTOR)
{
bool out = false;
std::tie (m_normals, out) = this->add_property_map<Vector> ("normal", default_value);
boost::tie (m_normals, out) = this->add_property_map<Vector> ("normal", default_value);
return std::make_pair (m_normals, out);
}
/*!

View File

@ -555,7 +555,7 @@ protected:
public:
template<typename P> // Point or Point_3
typename boost::result_of<const Construct_point_3(const P&)>::type
Point_3
construct_point(const P& p) const
{
return geom_traits().construct_point_3_object()(p);