Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: VDR developer version 1.3.6



> I have to admit that I don't quite understand where the problem is here.
> Why doesn't
>
>   T *l = (T *)First();
>
> work any more? After all, there is no other item named "First" anywhere
> near. What am I missing?

The changes are explained at http://gcc.gnu.org/gcc-3.4/changes.html
section "C++".
If I understand that correctly in a situation like

template <class T > class Parent {
public: int f();
};
...
int f();
...
template <class T > class MyClass : public Parent {
void xy() { f(); }
}

in xy() the global function f will be called.
_Why_ this is done we will probably have to ask some g++ developer or Mr. 
Stroustrup himself.

Marcel


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index