cpp_prac/junk/class.cc
2025-01-10 08:15:31 +01:00

12 lines
173 B
C++

#include <cstdint>
template <typename T> class User {
T id;
public:
explicit User(T n) : id(n) {}
};
int main() {
User<int> user1{1};
User<uint8_t> user2(0xFF);
}