Howard Hinnant <
howard....@gmail.com> writes:
| On Aug 27, 2014, at 8:13 PM, Matthew Fioravante <
fmatth...@gmail.com> wrote:
|
| > Maybe it would make sense to have a C++ <math> header which includes
| > <cmath> and also has C++ specific math functions? Similarly for
| > other headers. The header <cmath> sounds like a C compatibility
| > header, not the primary header for the C++ math library.
|
| No, just put the C++ specific math functions in <cmath>, and then
| explicitly state that they do not appear in <math.h> (unless the C
| committee says otherwise).
Agreed. We already have too many C++ headers that do "math" stuff and I
always forget which one to include -- <cmath>, <cstdlib>, <numerics>,
<algorithm>, <complex>, <valarray>, etc.
| We don’t need more headers. And there is no problem in the C++
| committee adding functionality to <cmath>. We only get in trouble
| when the C++ committee adds (or subtracts) functionality to <math.h>,
| or when the C committee adds (or subtracts) functionality to <cmath>.
|
| Howard
-- Gaby