This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: math constants
On Mon, Feb 4, 2013 at 12:16 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> The general idea makes *a lot* of sense of course. Before adding too much
> code, however, I think we should double check whether something is going on
> already in terms of a facility planned for TR2 or even existing already in
> eg, Boost.
boost has something incredibly ugly. They use template functions to
return the values and some ugly way to allow initialization of data
types other than float/double/long double using strings.
I think constexpr are much more in line with C++11 and going forward
and the math_constants class follows the numeric_limits approach. If
you could look through the meeting notes that'd be appreciated. I
wouldn't even know where to start.