Closed jkyang92 closed 2 years ago
This fixes a few compile warnings coming from mathicgb. Here's a summary of the less straightforward changes:
std::move
MATHICGB_ASSERT
((void)0)
assert
This fixes a few compile warnings coming from mathicgb. Here's a summary of the less straightforward changes:
std::move
is counterproductive when used in a return, returns already try to use the move constructor/assignment when possible.MATHICGB_ASSERT
and friends should always give a non-empty expression, the((void)0)
trick is the same thing the standardassert
does