Why can I use fixed-width integers without the cstdint header?

  • Thread starter Thread starter Nyap
  • Start date Start date
  • Views Views 895
  • Replies Replies 1

Nyap

HTML Noob
Banned
Joined
Jan 13, 2016
Messages
971
Reaction score
347
Trophies
0
Age
57
Location
That Chaos Site
XP
529
Country
is cstdint #included somewhere in iostream? because for some reason, this compiles perfectly on my laptop (gcc-4.9 with -std=c++14)

Code:
#include <iostream>
//no #include <cstdint>

int main()
{
    int32_t test{};
    std::cout << test;
    return 0;
}
 
Last edited by Nyap,
I just tried using fixed-width integers without iostream, and they're still there:
xmCPDaJ.png

is this a new feature in c++14?

--------------------- MERGED ---------------------------

yeah, after doing a bit more research, it appears that iostream must #include cstdint somewhere
 

Site & Scene News

Popular threads in this forum