what is the difference between
1 2 3 4
|
template<class T>
stuct S {
T x = value;
};
| |
and
1 2 3 4
|
template<class T>
stuct S {
T x{ value };
};
| |
and
1 2 3 4 5
|
template<class T>
stuct S {
T x;
S() :x(value) {}
};
| |
how does the compiler handle these 3 situations
Last edited on