Tags: a-teammate/code
Tags
remove deprecated thread_local workaround this was introduced bc visual studio didnt support it then, however we just recently updated vs from 2013 to 2015 so we do support natively the c++11 keyword thread_local.
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.