For Programmers: Free Programming Magazines  


Home > Archive > VC Language > November 2005 > Bug in VS.NET 2003 compiler









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Bug in VS.NET 2003 compiler
Viktor Prehnal

2005-11-27, 9:58 pm

template<class A> void func(A &classx)
{
classx[1] = 2; // will work, does not matter we dont know the operator
// A::operator[]
classx[1][2] = 2; // will cause an error, why? the operator A::operator[]
could
// return int* or another class that
could be indexable
}


Does this work in VS.NET 2005? Can anyone check?

Viktor Prehnal

2005-11-27, 9:58 pm

Sorry, already solved. However can't delete posts here.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com