fix the use of rvalue references

This commit is contained in:
Laurent Rineau 2024-03-27 23:18:33 +01:00
parent 1926ffd619
commit 50c9740cff
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public:
: base(CGAL::make_array(x, y)) {}
VectorC2(FT&& x, FT&& y)
: base(CGAL::fwd_make_array<FT>(x, y)) {}
: base(CGAL::fwd_make_array<FT>(std::move(x), std::move(y))) {}
VectorC2(const FT &hx, const FT &hy, const FT &hw)
: base( hw != FT(1) ? CGAL::make_array<FT>(hx/hw, hy/hw)

View File

@ -68,7 +68,7 @@ public:
: base(CGAL::make_array(x, y, z)) {}
VectorC3(FT_&& x, FT_&& y, FT_&& z)
: base(CGAL::fwd_make_array<FT_>(x, y, z)) {}
: base(CGAL::make_array(std::move(x), std::move(y), std::move(z))) {}
VectorC3(const FT_ &x, const FT_ &y, const FT_ &z, const FT_ &w)
: base( w != FT_(1) ? CGAL::make_array<FT_>(x/w, y/w, z/w)