Check this out:
(writing this from memory... so it my be incomplete)
Code:
template <class T>
myotherclass<T> *myclass<T>::operator[](int i)
{
myotherclass<T> *Temp=this->Val[i];
return (Temp==NULL)?this->Val.pData:Temp->pData;
}
This code (it was VERY similar if not this) caused g++ to segmentation fualt! HAha!
I bet you guys never coded so poorly that gcc caused a SEGV! SWEET!
Thats what happens when you are learning I guess.
