Stupid question, however answering it will make me either feel better or swear a rainbow.
static_cast<TYPE>(someVal);
or
(TYPE)someVal;
Again, just semantics but I personally prefer the latter to the former because it's just less typing.
I'm inclined to believe the former to be the "correct" form, however I just really want to be wrong on this.
static_cast<TYPE>(someVal);
or
(TYPE)someVal;
Again, just semantics but I personally prefer the latter to the former because it's just less typing.
I'm inclined to believe the former to be the "correct" form, however I just really want to be wrong on this.