Partial specialization with reference template parameter fails to compile in VS2005
- by Blair Holloway
I have code that boils down to the following:
template struct Foo {};
template & I struct FooBar {};
////////
template struct Baz {};
template & I
struct Baz< FooBar
{
static void func(FooBar& value);
};
////////
struct MyStruct
{
static const Foo s_floatFoo;
};
// Elsewhere: const Foo MyStruct::s_floatFoo;
void…