[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: c++ question: code duplication across classes
From:       Benoît_Jacob <jacob () math ! jussieu ! fr>
Date:       2006-09-22 17:45:08
Message-ID: 200609221945.08338.jacob () math ! jussieu ! fr
[Download RAW message or body]

Thanks... but reading some more docs, I had the confirmation that the "using" 
keyword can't be used on template types :/ and indeed g++ gives me error 
messages complaining about that.

Benoit

> If I remember correctly (untested):
>
> class Base
> {
> public:
> 	Base& operator+=(const Base& other);
> };
>
> class Derived : public Base
> {
> public:
> 	using Base::operator+=;
> ...
> };
>
> michael
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic