ummm.... why is there a limits.h file now?
Benjamin Kosnik
bkoz@redhat.com
Mon Sep 10 10:48:00 GMT 2001
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
More information about the Libstdc++
mailing list