Commit 66b73fd3 authored by Lioncash's avatar Lioncash
Browse files

common/swap: Mark byte swapping free functions with [[nodiscard]] and noexcept

Allows the compiler to inform when the result of a swap function is
being ignored (which is 100% a bug in all usage scenarios). We also mark
them noexcept to allow other functions using them to be able to be
marked as noexcept and play nicely with things that potentially inspect
"nothrowability".
parent 9cb4b7be
Supports Markdown
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