The following code:
template<class T> auto Value = 10;
template<> auto Value<char> = 0.0;
generates following output in cppinsights:
template<class T>
int Value = 10;
<> auto Value<char> = 0.0;
There are two issues:
- For both, the primary template and the specialization of
Value, we use auto. But only in the primary template cppinsights replaces auto by int. But it would be nice if also for the specialization it would replace auto by the according type (double).
- In line 3 of the output of cppinsights, it is missing the keyword
template in front of the <>.
The following code:
generates following output in cppinsights:
There are two issues:
Value, we useauto. But only in the primary template cppinsights replacesautobyint. But it would be nice if also for the specialization it would replaceautoby the according type (double).templatein front of the<>.