What I am referring to is what type of casting do you normally in C++. For example:
//Different ways to cast float x = 123.321f;[1]int a = (int)x;[2]int b = int(x);[3]int c = x; //implicit[4]int d = static_cast<int>(x);[5]int e = boost::lexical_cast<int>(x); /* EDIT: Thanks SiCrane */[6]int e = castTo<float>(x); //own implementation
If I missed some then just add em. But besides recommending [5] or [4] instead
of the other ones, which type of cast do you normally do in your
project. This post is just for fun and for you to CONFESS YOUR SINS.
[Edited by - Concentrate on August 1, 2010 5:41:03 PM]