A
Andy Skypeck
I am looking for some validation against a dubious coding practice
that prevails where I work. C types defined in types.h (Linux) or
stdint.h (Windows, C99?) are used as if they belong to the C++
standard namespace.
std::uint8_t instead of uint8_t
std::uint32_t instead of uint32_t
....
I don't think the use of std:: is correct. Nowhere are these types
explicitly added to the std namespace. In fact GCC 3.3 fails on them.
Neither are they among the types defined in the C++ standard language
support files listed on page 433 in Stroustrup (2nd Ed.)
std::size_t
std:trdiff_t
std::NULL
defined in <cstddef> are ok. I am wrong about this?
that prevails where I work. C types defined in types.h (Linux) or
stdint.h (Windows, C99?) are used as if they belong to the C++
standard namespace.
std::uint8_t instead of uint8_t
std::uint32_t instead of uint32_t
....
I don't think the use of std:: is correct. Nowhere are these types
explicitly added to the std namespace. In fact GCC 3.3 fails on them.
Neither are they among the types defined in the C++ standard language
support files listed on page 433 in Stroustrup (2nd Ed.)
std::size_t
std:trdiff_t
std::NULL
defined in <cstddef> are ok. I am wrong about this?