You are viewing a single comment's thread. Return to all comments →
int recursive_binaries(bool head) { return static_cast<int>(head); } template<typename ... Args> int recursive_binaries(bool head, Args ... args) { return static_cast<int>(head) + 2 * recursive_binaries(args...); } template<bool ...digits> int reversed_binary_value() { return recursive_binaries(digits...); };
Seems like cookies are disabled on this browser, please enable them to open this website
C++ Variadics
You are viewing a single comment's thread. Return to all comments →