On Tue, 30 Jul 2013, Ulrich Wilkens wrote:

> Hello,
>
> I've investigated this problem a little bit more and have found a
> solution (patch attached). It looks simple but has driven me crazy.
[...]
> size_t is typedef from 'unsigned long' on 64bit systems and 'unsigned
> int' on 32bit systems. 'unsigned long' is ok but 'unsigned int' gives
> a problem because it is equal to the following instantiation.
> On OpenBSD size_t is always typedef from 'unsigned long', even on 32bit.
> That's why the problem doesn't exist under OpenBSD.
> Finally I adopted the OpenBSD solution to the other platforms. I did it
> by replacing size_t with 'unsigned long':
>
>    __instantiate(Vector<unsigned long>)
>    __instantiate(Vector<unsigned int>)
>
> Now it runs on all platforms and a preprocessor directive is not even
> needed.
>

That looks good - applied.

-- 
Jon Trulson

   "I was not genomed to alter reality."
       - Sonmi 451

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to