Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2005-05-08 03:50:53


"Tobias Schwinger" <tschwinger_at_[hidden]> wrote

> Static constants in "<type>_constants"-namespaces are also undesirable,
> because there is no way to select a namespace named "<T>_constants" from
> within a template.

FWIW thi would work fine for me:

    typedef std::math::constants<T> math;
     2 * math::pi * r ;

regards
Andy Little


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