Author Topic: Use int32_t without using cstdint?  (Read 3754 times)

thssld

  • Guest
Use int32_t without using cstdint?
« on: June 07, 2009, 03:40:56 am »
I wrote a very short code like this, and it works.
Code
#include <iostream>

using std::cout;

int main(){
    int32_t a = 8;
    cout << a;
    return 0;
}
but i didn't add a line like this:
Code
#include <cstdint>
this header is in the tr1, and not included in the mingw 3.4.5
can i use all the functions of cstdint without including it?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Use int32_t without using cstdint?
« Reply #1 on: June 07, 2009, 09:56:05 am »
I wrote a very short code like this, and it works.
Code
#include <iostream>

using std::cout;

int main(){
    int32_t a = 8;
    cout << a;
    return 0;
}
but i didn't add a line like this:
Code
#include <cstdint>
this header is in the tr1, and not included in the mingw 3.4.5
can i use all the functions of cstdint without including it?

Question not related to C::B and therefore violating our forum rules.

Ask in a MinGW / c++ forum.

Topic locked !!