You are viewing a single comment's thread. Return to all comments →
template <bool First, bool... Rest> struct R { static constexpr int value = (R<Rest...>::value << 1) | First; }; template <bool First> struct R<First> { static constexpr int value = First; }; template <bool... digits> int reversed_binary_value() { return R<digits...>::value; }
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 →