mirror of https://github.com/CGAL/cgal
fix the use of rvalue references
This commit is contained in:
parent
1926ffd619
commit
50c9740cff
|
|
@ -53,7 +53,7 @@ public:
|
||||||
: base(CGAL::make_array(x, y)) {}
|
: base(CGAL::make_array(x, y)) {}
|
||||||
|
|
||||||
VectorC2(FT&& x, FT&& 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)
|
VectorC2(const FT &hx, const FT &hy, const FT &hw)
|
||||||
: base( hw != FT(1) ? CGAL::make_array<FT>(hx/hw, hy/hw)
|
: base( hw != FT(1) ? CGAL::make_array<FT>(hx/hw, hy/hw)
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ public:
|
||||||
: base(CGAL::make_array(x, y, z)) {}
|
: base(CGAL::make_array(x, y, z)) {}
|
||||||
|
|
||||||
VectorC3(FT_&& x, FT_&& y, FT_&& 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)
|
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)
|
: base( w != FT_(1) ? CGAL::make_array<FT_>(x/w, y/w, z/w)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue