diff --git a/cstdint.htm b/cstdint.htm index ab4c4c1..bb8ac63 100644 --- a/cstdint.htm +++ b/cstdint.htm @@ -12,11 +12,10 @@
The header <boost/cstdint.hpp>
-places the contents of the header <boost/stdint.h>
-in namespace boost. That header consists entirely of typedef's useful for
-writing portable code that requires certain integer widths.
The specifications are based on the ISO/IEC 9899:1999 C Language standard
-header stdint.h. The 64-bit types required by the C standard are not
+header <stdint.h>. The 64-bit types required by the C standard are not
required in the boost header, and may not be supplied in all implementations,
because long long
is not [yet] included in the C++ standard.
See cstdint_test.cpp for a test program.
@@ -70,7 +69,7 @@ representing any value of any signed integer type. capable of representing any value of any unsigned integer type.These types are required.
Revised 29 Jun 2000 +
Revised 12 Nov 2000
diff --git a/index.htm b/index.htm index 6439cbb..5d968d5 100644 --- a/index.htm +++ b/index.htm @@ -34,19 +34,12 @@
<boost/stdint.h>
wrapped in namespace boost.stdint.h>
, wrapped in namespace boost.
+ This implementation may #include the compiler
+ supplied <stdint.h>
, if present. int32_t
or uint_least16_t
.
- Use in preference to <stdint.h>
or <boost/stdint.h>
- because the names are safely placed in the boost namespace.<boost/stdint.h>
stdint.h>
.
- This implementation #includes the compiler
- supplied <stdint.h>
, if present.stdint.h>
+ for enhanced portability. Furthermore, all names are safely placed in the boost namespace.
<boost/integer_traits.hpp>
The organization of boost integer headers and classes is designed to take
-advantage of <stdint.h>
types from in the 1999 C standard
+advantage of <stdint.h>
types from the 1999 C standard
without resorting to undefined behavior in terms of
the 1998 C++ standard. The header <boost/cstdint.hpp>
-makes the standard integer types safely available in namespace boost without placing any names in the
-global namespace or namespace std. As always, the intension is to complement rather than
+makes the standard integer types safely available in namespace boost without placing any names in namespace std. As always, the intension is to complement rather than
compete with the C++ Standard Library. Should some future C++ standard
-include <stdint.h>
and <cstdint>
, then <boost/stdint.h>
and <boost/cstdint.hpp>
+include <stdint.h>
and <cstdint>
, then <boost/cstdint.hpp>
will continue to function, but will become redundant and may be safely deprecated.
Because these are boost headers, their names conform to boost header naming
-conventions rather than C++ Standard Library header naming conventions. An
-exception is <boost/stdint.h>
which uses a .h extension to indicate its C rather than C++ heritage.
As an implementation artifact, certain C <limits.h> macro names may possibly be @@ -88,9 +80,17 @@ visible to users of <boost/cstdint.hpp>. Don't use these macros; the any Boost specified interface. Use boost:: integer_traits<> or std::numeric_limits<> instead.
+
+As another implementation artifact, certain C
+<stdint.h>
typedef names may possibly be visible in the
+global namespace to users of <boost/cstdint.hpp>
.
+Don't use these names, they are not part of any Boost specified
+interface. Use the respective names in namespace boost
+instead.
+
Revised: 10 Nov 2000 +
Revised: 12 Nov 2000