This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
ummm.... why is there a limits.h file now?
- To: gdr at codesourcery dot com, libstdc++ at gcc dot gnu dot org
- Subject: ummm.... why is there a limits.h file now?
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Mon, 10 Sep 2001 10:48:42 -0700
I was looking through bits/c++config, and saw:
// And any CPU-specific definitions.
#include <bits/limits.h>
Here's what's wrong with this:
1) limits.h is a "C" compatibility header. Use something besides this,
say cpu_limits.h. (No point in confusing things, especially since
glibc has a bits subdir as well.)
2) there should be no includes in c++config, if possible. This should
just be included in bits/std_limits.h:
#include <bits/c++config.h>
#include <bits/cpu_limits.h>
Thoughts?
-benjamin