Good day

Why is template parameter 32 not displayed here?

#include <bitset> template <int N> void printBitset(std::bitset<N> bs) { } int main() { std::bitset<32> bs(63); printBitset(bs); } 

https://ideone.com/Bnu1kR

    1 answer 1

     template <unsigned int N> 

    https://ideone.com/bSkf9s

    • Oh, yes, exactly. PS checked on the studio, the compilation is normal) - ViktorKozlov
    • Apparently, std::size_t correct. - VladD 5:14