I'm still learning about type casting in C++ and I'm currently doing this
long int t = time(NULL);
I'm using VS2013 and noticed the conversion from 'time_t' to 'long' warning so I thought I would type cast it to look like;
long int t = static_cast<long int> time(NULL);
However this doesn't work yet combining a static cast and a C-style cast works
long int t = static_cast<long int> (time(NULL));
I was just wondering if anyone could help shed some light on this?