What is the difference between <cstdint>
and <tr1/cstdint>
? (apart from that one puts things in namespace std::
and the other in std::tr1::
)
Since this stuff isn't standard yet I guess it's compiler specific so I'm talking about gcc. To compile with the non-tr1 one I must compile with -std=c++0x
, but there is no such restriction when using tr1.
Is the answer perhaps that there is none but you can't go around adding things to std::
unless there, well, standard. So until c++0x is standardised an error must be issued using <cstdint>
but you dont need to worry when adding to the tr1::
namespace, which makes no claim to things in it being standard? Or is there more to this?
Thanks.
p.s - If you read "std" as standard, as I do, I do apologise for the overuse of the word in this Q.