You are viewing a single comment's thread. Return to all comments →
I ended up with the following:
template <bool digit, bool...digits> int reversed_binary_value() { return digit + (reversed_binary_value<digits...>() << 1); } template<> int reversed_binary_value<true>() { return 1; } template<> int reversed_binary_value<false>() { return 0; }
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 →
I ended up with the following: