Home

LR <lruss@superlink.net> wrote in message...
>
> class A {
> public:
> A &x(const int x) {
> return *this;
> }
> };
>
> class B : public A {
> public:
> B &x(const B &x) {
> return *this;
> }
> };
>
> int main() {
> B q;
> B p;
> q.x(1); // error
> q.x(p);
> }
>
> LR

Thanks for the spaces vs. tabs. Looks like it should now (indented). <G>

--
Bob R
POVrookie

previous
next

Re: creating really big lists
Re: Yet another comparison of Python Web Frameworks
Re: Why is this loop heavy code so slow in Python? Possible ProjectEuler spoilers
Re: Beginners Query - Simple counter problem
Re: static const Class Member
Fundacja Hobbit
Niechciane i Zapomniane
Mam Marzenie
Rodzic Po Ludzku
Podaruj Zycie