|
Boost : |
Subject: Re: [boost] Boost.Math and Math Constants
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-12-08 05:19:43
> Nice. But actually I need something else too. I don't think I mailed this
> earlier so I use this announcement to describe this additional
> wish/suggestion shortly.
>
> pi<Real>() is a macro/function, but there should be a structure behind. If
> I want to use a templated user defined type, such as ttmath (I'm a fan of
> that library), I'm stuck (unless I oversee something). Because it
> boost::math::constants::pi<T> cannot be partially specialized because it
> is a function.
Ah yes, the functions can only be fully specialized, and yes we could
relatively easily add a struct layer in behind the function.
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk