kde-core-devel@kde.org
[Top] [All Lists]

Re: Refactoring done (was: Strigi refactor)

Subject: Re: Refactoring done was: Strigi refactor
From: Cyrille Berger
Date: Fri, 16 Mar 2007 09:21:36 +0100
> That would solve it. How would that work?
it creates aliases for namespace. So basically you can have:

namespace Strigi {
template <class T>
class StreamBase {
//blahblah
};

};

namespace jstreams = Strigi; // maybe find a way to mark this as deprecated ?

And then you can either write:

Strigi::StreamBase<char>* a = getStream();
or
jstreams::StreamBase<char>* a = getStream();

-- 
Cyrille Berger

<Prev in Thread] Current Thread [Next in Thread>