|
Boost : |
From: Paul A. Bristow (boost_at_[hidden])
Date: 2001-11-01 13:05:13
Was there any discussion on the C99 additions to math.h, which
one will get by #including <cmath>
C99 math.h seems to include a lot of MACROs and some math functions like
gamma
(as tgamma - note just three versions for float, double and long double)
but most important, it adds standard methods of
handling floating point infinity, NaN and FP exception handling.
For example, MSVC 6 provides int _fpclass( double x );
but this is not portable.
Should C++ math functions start to use these MACRO definitions,
as for example:
#define fpclassify(x) <int rvalue>
'returning' FP_INFINITE, FP_NAN, FP_NORMAL ...
be used,
or should fpclassify be templated in some way for C++?
(suggestions now?)
Paul
Dr Paul A Bristow, hetp Chromatography
Prizet Farmhouse
Kendal, Cumbria
LA8 8AB UK
+44 1539 561830
Mobile +44 7714 33 02 04
mailto:pbristow_at_[hidden]
> -----Original Message-----
> From: Beman Dawes [mailto:bdawes_at_[hidden]]
> Sent: Wednesday, October 31, 2001 1:18 PM
> To: Boost
> Subject: [boost] LWG reaction: Header <cstdint>
>
>
> Various Boost libraries were proposed to the C++ standards committee's
> Library Working Group (LWG) at the Redmond meeting for inclusion in the
> upcoming Library Technical Report (TR). What follows is my
> recollection of
> the reaction from the LWG.
>
> The discussion of <cstdint> (aka boost/cstdint.hpp) was brief. The only
> real question raised was whether or not to do a larger proposal including
> more of the C99 added library features. Bill Plauger volunteered to do a
> more comprehensive proposal based on Dinkumware's C99/C++ integration
> work. See
> http://www.dinkumware.com/libc99.html
>
> The Boost <cstdint> proposal was tabled, pending receipt of the
> Dinkumware
> proposal.
>
> Since Bill Plauger (and Pete Becker) are among the few people who have a
> strong grasp of both the C99 and C++ standard libraries, it is a
> real plus
> for the TR that he has volunteered to do a proposal based on Dinkumware's
> work.
>
> --Beman
>
>
> Info: http://www.boost.org Unsubscribe:
> <mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk