Commit b88f165c authored by Alexis SALZMAN's avatar Alexis SALZMAN

[xFEM] xGeomElem bug correction (= operator and mv constructor)

Some std::swap have been replaced by call to swap class method to
avoid infinit recursion. Validate by N.C.
parent bc928091
......@@ -93,11 +93,11 @@ void swap(xGeomElem& l, xGeomElem& r) noexcept
swap(l.Weight, r.Weight);
}
xGeomElem::xGeomElem(xGeomElem&& other) noexcept : xGeomElem() { std::swap(*this, other); }
xGeomElem::xGeomElem(xGeomElem&& other) noexcept : xGeomElem() { swap(*this, other); }
xGeomElem& xGeomElem::operator=(xGeomElem other)
{
std::swap(*this, other);
swap(*this, other);
return *this;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment