Another template problem.
given the following definition:
template< int column, int line >
struct HEX7
{
enum constants
{
columnMask = 0xf,
lineMask = 0x7,
};
enum{ value = ( (column & columnMask) << 3 ) | ( line & lineMask ) };
};
and enums using this template like this:
enum KeyCode
{
KeyXYZ = HEX7<0, 1>::value
};
the definition bar shows the enum value as:
enum KeyXYZ = HEX7<0
The default intellisense shows the definition in the tooltip as "unknown value", alternating with the VAX tooltip which shows the same as the definition bar.