Reworded warning about implicit and explicit conversions of Points/Weighted_points

This commit is contained in:
Mael Rouxel-Labbé 2017-05-05 12:26:16 +02:00
parent 54bae5140a
commit 0b38b4f82e
4 changed files with 7 additions and 4 deletions

View File

@ -86,7 +86,7 @@ Point_2(const Kernel::FT &x, const Kernel::FT &y);
/*!
introduces a point from a weighted point.
\warning The `explicit` keyword is used to not have accidental implicit conversions
\warning The `explicit` keyword is used to avoid accidental implicit conversions
between Point_2 and Weighted_point_2.
*/
explicit Point_2(const Kernel::Weighted_point_2 &wp);

View File

@ -67,7 +67,7 @@ Point_3(const Kernel::FT &x, const Kernel::FT &y, const Kernel::FT &z);
/*!
introduces a point from a weighted point.
\warning The `explicit` keyword is used to not have accidental implicit conversions
\warning The `explicit` keyword is used to avoid accidental implicit conversions
between Point_3 and Weighted_point_3.
*/
explicit Point_3(const Kernel::Weighted_point_3 &wp);

View File

@ -48,7 +48,7 @@ public:
/*!
introduces a weighted point from point `p` and weight `0`.
\warning The `explicit` keyword is used to not have accidental implicit conversions
\warning The `explicit` keyword is used to avoid accidental implicit conversions
between Point_2 and Weighted_point_2.
*/
Weighted_point_2(const Point_2<Kernel>& p);

View File

@ -47,8 +47,11 @@ public:
/*!
introduces a weighted point from point `p` and weight `0`.
\warning The `explicit` keyword is used to avoid accidental implicit conversions
between Point_3 and Weighted_point_3.
*/
Weighted_point_3(const Point_3<Kernel>& p);
explicit Weighted_point_3(const Point_3<Kernel>& p);
/*!
introduces a weighted point from point `p` and weight `w`.