Cpp Coding Standards/CLSDESIGN/NoConv

From Apache OpenOffice Wiki
< Cpp Coding Standards‎ | CLSDESIGN
Revision as of 22:08, 7 January 2007 by Thorsten (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Avoid implicit conversions, because they might fire in the most unexpected places (and shoot you or your fellow coder in the foot). Apart from that, they might introduce subtle ambiguities (more than one way for the compiler to get from type A to type B). Prefer explicit conversions instead, because you can control their usage.

Personal tools