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

List:       kde-devel
Subject:    Re: hash map?
From:       Michael Pyne <michael.pyne () kdemail ! net>
Date:       2006-07-03 20:46:09
Message-ID: 200607031646.13514.michael.pyne () kdemail ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 03 July 2006 16:31, André Wöbbeking wrote:
> On Monday 03 July 2006 21:07, Christoph Bartoschek wrote:
> > Am Montag, 3. Juli 2006 15:03 schrieb Michael Thaler:
> > > Hello,
> > >
> > > I am working on porting the SIOX tool from gimp to Krita. The SIOX
> > > tool uses a hash_map to do some caching. For example it uses the
> > > two functions
> >
> > ...
> >
> > > Since Krita is part of KOffice, I am not sure if it is o.k. to use
> > > SGI's hash_map for Krita because it is not part of the STL. If not,
> > > is there any other hash map that I could use for Krita?
> >
> > The next standard will contain std::unsorted_map, that is implemented
> > by a hash. It is already part of Technical Report 1
> > http://en.wikipedia.org/wiki/Technical_Report_1. The libstdc++
> > already implements it (at least since GCC 4.0). You can find it when
> > you search for the header unsorted_map.
>
> lol, many KDE developers still avoid STL which is from 1998.
> std::unsorted_map won't be part of a released before 2008. So you
> shouldn't use it inside KDE. Keep in mind that GCC is not the only
> compiler and that there are other platforms than linux (with old/broken
> compilers).

But then again, if he doesn't mind restricting his Krita plugin (we're not 
talking about kdelibs after all) to platforms that aren't seminally retarded, 
then it may be perfectly acceptable to use the extension hash_map class.  I'd 
avoid TR1 because it is, after all, not in popular distribution yet.

And just because many KDE developers avoid STL doesn't mean it's a requirement 
for KDE software.  In fact there's quite a bit of KDE software that includes 
STL in one form or another.

Regards,
 - Michael Pyne

[Attachment #5 (application/pgp-signature)]

>> 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