using IntegerType1 = int;
typedef int IntegerType2;
int main()
{
IntegerType1 n1 = 1; // OK
IntegerType2 n2 = 2; // OK
}
My questions are:
What's the difference between using-style and typedef-style?
As we already have typedef-style, what's the motivation to make using-style become a C++ standard?