Skip to main content
4 votes

An Attempt at Creating a Type-Safe, Generic Swap Macro With Compile Time Error Checking

SWAP(a, b) looks wrong. The below code looks like a, b are not changed as would be expected ...
chux - Reinstate Monica's user avatar
2 votes

An Attempt at Creating a Type-Safe, Generic Swap Macro With Compile Time Error Checking

Well done avoiding the temptation to name the function memswap() (for readers that don't know, identifiers beginning mem ...
Toby Speight's user avatar
  • 77.1k

Only top scored, non community-wiki answers of a minimum length are eligible