In c++ when I try to compile the following code I get a conflicting declaration error:
typedef uint_least64_t uint;
I assume that conflicting declaration error is because a type declaration for uint already exists somewhere in the language, and I believe that the type is uint_least32_t because:
uint i = -1;
std::cout << i << std::endl;
returns an integer value that is (2^32)-1. Therefore is it possible in c++ to redefine uint as uint_least64_t.
Aucun commentaire:
Enregistrer un commentaire