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

Nyap

HTML Noob
OP
Banned
Joined
Jan 13, 2016
Messages
971
Trophies
0
Age
55
Location
That Chaos Site
XP
483
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,

Nyap

HTML Noob
OP
Banned
Joined
Jan 13, 2016
Messages
971
Trophies
0
Age
55
Location
That Chaos Site
XP
483
Country
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

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: yawn