Original Post
Is this code valid? Its giving me some INTERNAL COMPILER ERROR''s in vc++2003.net, i cant see a problem with it.
namespace testnamespace
{
template<typename T, int size>
class trait{};
template<typename T, int size, class elem = trait<T, size> >
class something
{};
template<int size, typename T>
something<T, size> test(T num)
{
something<T, size> instance;
return instance;
}
}
int main()
{
testnamespace::test<4, float>(1.f);
}
How can i fix it? thanks.