This repository has been archived by the owner. It is now read-only.
Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use standard versions of min, max, clamp and swap
Basically, use min/max/swap from std:: and clamp from boost. (And use proper aliasing via `using ...` import.) Min and max where inaccurate aliases: The std:: versions take a single type parameter, while the versions in tools.h take two; those do not have an effect though, because calling the std:: versions will render the second parameter useless again. Same with clamp; it takes 3 type parameters but uses min/max internally so these type parameters can never be different. Clamp was also not using lvals; as a solution we use the boost::algorithm version.
- Loading branch information
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters