Wednesday, December 1, 2010

Casts

It is better to use static_cast<int>() rather than (int).

Some of the reasons are that static_cast<...>() sticks out and is easier to grep for.

No comments:

Post a Comment