template<class T1, class T2 = int> class A;
template<class T1 = int, class T2> class A;
which is equal to this?
1) template<class T1 = int, class T2 = int> class A;
2) template<class T1, class T2> class A;
I know 1st option is correct. according to the standards But ,for me in various compilers 1st option is not accepting giving
error: redefinition of default argument //for 1st case
and 2nd option is accepting
If any one clarify my doubt..by checking this..Whether i made mistake or else standard is correct...