This file contains hidden or 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
// -First idea was to do it thanks to RAII. Problem is it requires a lot of brackets | |
// -Then i wanted to go full variadic generic template function, | |
// but i got stuck because i would have to pass a variadic function | |
// to a function which doesn't make any sense, and was overkill | |
// - This solution seems the best for now... Client code is okay-ish... | |
#include <iostream> | |
#include <chrono> | |
#include <thread> | |
#include <string> |
NewerOlder