Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2001-10-08 19:16:44


on 10/6/01 11:58 AM, Howard Hinnant at hinnant_at_[hidden] wrote:

> On Saturday, October 6, 2001, at 11:47 AM, Peter Dimov wrote:
>
>> Don't get me wrong; I value the ability to not include <everything>. But why
>> not simply add the overload to the standard, instead of trying to somehow
>> specify that
>>
>> void f(std::string const &);
>>
>> f("fish");
>>
>> is different than
>>
>> f(std::string("fish"));
>>
>> when in fact the two are equivalent.
>
> I would be behind such a proposal 110%! (that's 110 factorial ;-) )

But the "%" means "percent" or "per one hundred", so you actually have 1.1
factorial. You can't directly get the factorial of a non-integer real, but
you could fake it with the gamma function. With n! == gamma(n+1), you'll be
behind such a proposal by a factor of gamma(2.1), which I guess to be
between 1 and 2. -_^

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

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