nativeColor and endianness

Patrick Julien freak at codepimps.org
Sat Oct 25 08:16:23 CEST 2003


On October 24, 2003 05:44 pm, Boudewijn Rempt wrote:
> On Friday 24 October 2003 23:37, Patrick Julien wrote:
> > Yes, because your not using pointers, if you have been tho, a simple
> > forward reference would have done.
>
> But does QMap work with pointers?

Yes and no, it will work since it's sorting on less of pointers, however, the 
problem is that you can't really find anything anymore in this case since you 
would need to search by the original pointer that was allocated and returned 
by new.

Std::map provides additional template arguments so that you can store pointers 
but still sort and search by something else than the pointer value.

QMap<K, V>
std::map<K, V, less<K>, allocator<K> >



>
> > In any case, if you're willing to do the work to use littlecms, maybe
> > you're willing to load the color strategies dynamically too :)
> >
> :-). We'll see... Not tonight, anyway, since it's getting really late.



More information about the kimageshop mailing list