This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: math constants
On Tue, Feb 5, 2013 at 9:32 AM, Ed Smith-Rowland <3dw4rd@verizon.net> wrote:
> I just remembered I found it necessary to add math constants for the old TR1
> math functions.
>
> If you look at include/tr1/special_function_util.h I had a
> floating_point_constant template in analogy to the standard
> integral_constant.
> Then I added a bunch of math constants. So we have some prior art in this.
>
> I would be in strong support of a fully standard solution along these lines.
You really mean that the current form is what you prefer? Why
functions? Why not constexpr? You named numeric_constants after
numeric_limits but it's implemented differently.