13 lines
173 B
C++
13 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);
|
||
|
}
|