Topic: Is this a defect in the standard ?
Author: "Gene Bushuyev" <gbush@my-deja.com>
Date: 2000/04/26 Raw View
<pmmucci@my-deja.com> wrote in message news:8dmhoe$tag$1@nnrp1.deja.com...
> In article <8dcr8f$7as$1@nnrp1.deja.com>,
> pmmucci@my-deja.com wrote:
[snip]
> Its been a few days, and no takers.
>
> I assume that the inability for anyone to construct
> such an example suggests this case cannot exit.
I think it's a little bit hasty conclusion. There are usually simpler
explanations :-)
Here is the example of "->" followed by a class template (same with "."
token):
template<class T>
class Base
{
public:
virtual void get(){}
};
class Derived: public Base<int>
{
public:
virtual void get(){}
};
void foo()
{
Base<int>* a = new Derived;
a->Base<int>::get();
}
--
Gene Bushuyev
*** If Linux is the answer, then what is the question? ***
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]