Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-05-14 12:58:32


From: "Ed Brey" <brey_at_[hidden]>

> [...] This would indicate that
> pi()'s purpose is to provide a means way to get inlining and
> constant-folding on compilers that can't yet do this with pi (it just
> happens that almost all compilers currently have this limitation),

I don't get it.

double const pi = 3.14...;

will not constant-fold, while

inline double const pi()
{
    return 3.14....;
}

will? I'm probably misunderstanding something.

--
Peter Dimov
Multi Media Ltd.

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