The following compilation without problems in g ++:
template<typename ReturnType = double, typename OtherType> ReturnType func(const OtherType& var)
{
ReturnType result = 0;
return result;
}
Is it good that all standard compilers have a default template parameter ( OtherTypehere) after the default template parameter ( ReturnTypehere)?
source
share