Does anybody know a workaround so that the following code compiles with VC++ 2003?
template< typename t, t v, template< t > class c >
struct s
{
static t r( )
{
return c< v >::r;
}
};
template< typename t >
struct c
{
template< t v >
struct s2
{
static t const r = v;
};
};
int main
(
)
{
s< int, 1, c< int >::s2 >::r( );
}
Btw, a standard-compliant compiler shoud compile this code, shoudn't it?