User profile: Peter87

User info
User name:Peter87
Website:http://dataapa.net/
History
Joined:
Number of posts:10890
Latest posts:

TEXT like behavior of the function?
Perhaps something along these lines... [code]#include <type_traits> #include <iostream> #include <s...

TEXT like behavior of the function?
The use of macros could probably remove the need to repeat the string content.

Be careful when storing the result of std::clamp as a reference
[i]Some[/i] structs are PODs.

How much attention do pay to coding style?
[quote=malibor]do you use std::cout everywhere to print errors? that's very bad code design.[/quote]...

Be careful when storing the result of std::clamp as a reference
std::clamp always takes the arguments by reference and returns a reference no matter what type it is...