cstdint Questions
3
Solved
Why doesn't C++ have <cstdfloat> header for floats like it has <cstdint> for integers?
EDIT :
By <cstdfloat> I mean header that provides typedefs for float and double. Much like qreal ty...
10
Solved
I'm trying to compile a C++ software package that was written in 2007 and I'm getting this error:
error: ‘uint32_t’ does not name a type
This is happening in 64-bit Ubuntu using g++ 4.5.2. It com...
2
Solved
In C++, fixed width integers are defined as optional, but I can't seem to find the recommended way to check if they are actually defined.
What would be a portable way to check if fixed width intege...
2
It seems the following is guaranteed to pass (asked already here):
#include <type_traits>
static_assert(!std::is_same_v<char, signed char>);
static_assert(!std::is_same_v<char, unsi...
Mediaeval asked 29/8, 2019 at 7:5
1
I'm having header-related issues apparently new to VS2015 while trying to compile DOSBox SVN Daum in Windows 10. Examples:
Severity Code Description Project File Line Suppression State
Error (acti...
Efren asked 9/12, 2016 at 1:44
3
Solved
I experienced some odd behavior while using C++ type traits and have narrowed my problem down to this quirky little problem for which I will give a ton of explanation since I do not want to leave a...
1
Solved
I just stumbled upon the type u_int8_t because it did not compile in Windows+MinGW (but compiled fine under Linux). According to this site the C++11 standard defines the type uint8_t. I just used t...
3
Solved
What is the difference between stdint.h and cstdint?
Both of them are available in MSVC (Visual Studio 2010) and gcc-4.5.1. Also both define the intX_t/uintX_t types (where X is the size of the typ...
6
Solved
I have been pondering on whether or not I should use the typedefs inside <cstdint> or not.
I personally prefer writing uint32_t over unsigned int and int8_t over char etc... since it to me i...
4
Solved
Boost's C99 stdint implementation is awfully handy. One thing bugs me, though. They dump all of their typedefs into the boost namespace. This leaves me with three choices when using this facility:
...
1
© 2022 - 2024 — McMap. All rights reserved.