Jump to content

Variable size/Set: Difference between revisions

no edit summary
No edit summary
Line 12:
 
Here <var>foo</var> is a signed integer with at least 32 bits. [[wp:stdint.h#Minimum-width integer types|stdint.h]] also defines minimum-width types for at least 8, 16, 32, and 64 bits, as well as unsigned integer types.
 
=={{header|C++}}==
 
<lang Cpp>#include <boost/cstdint.hpp>
 
boost::int_least32_t foo;</lang>
 
C++03 does not specify a standard stdint.h or cstdint header. At least one widely used compiler (MSVC) does not support C99 and hence does not ship with stdint.h. The [http://www.boost.org/ Boost C++ Libraries] provide a portable implementation which should be used instead.
 
=={{header|D}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.