Is there a way to make the compiler deduce the parameter size_t L using a constrained by concepts template argument?
That's the best I got
template <typename T, size_t L>
concept def_bitset = std::is_same<T, std::bitset<L>>::value;
template<size_t L>
void stamp(def_bitset<L> auto const &b) {
std::cout << b << std::endl;
}
This works if I call it passing the L as a template argument
stamp<4>(bitset<4>{0b0110});
I'd like to be able to call stamp without repeating the bitset size.