|
Boost Users : |
Subject: Re: [Boost-users] A MPL loop..
From: Larry Evans (cppljevans_at_[hidden])
Date: 2010-07-11 12:56:38
On 07/11/10 10:39, Larry Evans wrote:
> On 07/11/10 02:18, Frank Winter wrote:
>> I am trying to translate this runtime loop
>>
>> while( totalsize * maxelem * 3 > poolsize )
>> maxelem >>= 1;
>>
>> into MPL. I got so far:
>>
[snip]
> You might try using:
>
> http://svn.boost.org/svn/boost/sandbox/variadic_templates/boost/mpl/while.hpp
>
[snip]
The attached uses mpl/while.hpp, giving output:
actual result=256
expected result=256
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net