Follow-up after 9cde96993e

b67ad6434d
Fixed compilation on GCC and CLang
This commit is contained in:
Vojtech Bubnik 2023-04-21 08:31:16 +02:00
parent ed65cdd955
commit b3b44681a9
2 changed files with 2 additions and 3 deletions

View File

@ -160,14 +160,14 @@ template Vec3d BoundingBox3Base<Vec3d>::size() const;
template <class PointType, typename APointsType> double BoundingBoxBase<PointType, APointsType>::radius() const
{
assert(this->defined);
return 0.5 * (this->max - this->min).cast<double>().norm();
return 0.5 * (this->max - this->min).template cast<double>().norm();
}
template double BoundingBoxBase<Point, Points>::radius() const;
template double BoundingBoxBase<Vec2d>::radius() const;
template <class PointType> double BoundingBox3Base<PointType>::radius() const
{
return 0.5 * (this->max - this->min).cast<double>().norm();
return 0.5 * (this->max - this->min).template cast<double>().norm();
}
template double BoundingBox3Base<Vec3d>::radius() const;

View File

@ -161,7 +161,6 @@ inline void polylines_append(Polylines &dst, Polylines &&src)
template<typename PointsType>
inline void polylines_merge(PointsType &dst, bool dst_first, PointsType &&src, bool src_first)
{
using PointType = typename PointsType::value_type;
if (dst_first) {
if (src_first)
std::reverse(dst.begin(), dst.end());