D
Dave Rahardja
Is there a difference between a static_cast and an C-style type cast?
In other words, is there a difference between...
int a;
unsigned b = static_cast<unsigned>(a); // static_cast
unsigned c = (unsigned)(a); // C-style cast
In other words, is there a difference between...
int a;
unsigned b = static_cast<unsigned>(a); // static_cast
unsigned c = (unsigned)(a); // C-style cast