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

Discussion in 'Computer Programming, Emulation, and Game Modding' started by Nyap, May 18, 2016.

  1. Nyap
    OP

    Nyap HTML Noob

    Banned
    973
    344
    Jan 13, 2016
    That Chaos Site
    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, May 18, 2016
  2. Nyap
    OP

    Nyap HTML Noob

    Banned
    973
    344
    Jan 13, 2016
    That Chaos Site
    I just tried using fixed-width integers without iostream, and they're still there:
    [​IMG]
    is this a new feature in c++14?

    — Posts automatically merged - Please don't double post! —

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