Boost logo

Boost :

Subject: Re: [boost] [call-traits][param_type] why is sizeof(void*) chosen as the limit for passing by value?
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2010-04-16 21:19:51


On Fri, Apr 16, 2010 at 5:49 AM, Thorsten Ottosen <nesotto_at_[hidden]> wrote:
> Jeffrey Hellrung skrev:
>> You might want the "by-value size limit" to be platform dependent.  I can
>> imagine that the limit for 64-bit systems could arguably be twice that for
>> 32-bit systems.
>
> by using 2*sizeof(int) we should probably get this behavior by default. Do
> we know any compilers where int does not have word size?
>
> But anyway, there might be compiler differences even on the same platform.

64-bit compilers, which have int as 32-bit for some (in my opinion)
very stupid reasons (I like purity)? Perhaps use long, which should
be 32-bit on 32-bit, and 64-bit on 64-bit systems, and hopefully it
expands more later on too?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk