Skip to content

Commit

Permalink
Fix -Wdeprecated-copy warning in Clang
Browse files Browse the repository at this point in the history
Explicitly mention copy assignment operator as default.
  • Loading branch information
aclex committed Mar 8, 2022
1 parent 81b34c3 commit 05c6259
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/floaxie/diy_fp.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ namespace floaxie
}
}

/** \brief Copy assignment operator. */
diy_fp& operator=(const diy_fp&) = default;

/** \brief Subtracts the specified `diy_fp` value from the current.
*
* Simple mantissa subtraction of `diy_fp` values.
Expand Down

0 comments on commit 05c6259

Please sign in to comment.