Day 6
long double, short int and Generate_Myclass( Generate_MyClass( float ) )
I wrote:
Generator_MyClass( long double );
and compiler showes an error.
The catch is in space.
It is easy to solve with one typedef and the job is done.
Then we have:
typedef long double long_double;
Generator_MyClass( long_double );
The same thing is for short int.
typedef short int short_int;
Generator_MyClass( short_int );
Just in theory, what happens if I want:
Generate_MyClass( Generate_MyClass( float ) );
Of course compiler wan't translate it.
The solution is similar to the preveous one.
Generate_Myclass( float );
Generate_Myclass( Myclass_float );