| http://www.w3.org/ns/prov#value | - No RTTI is needed, it is a runtime feature for runtime use, a switch is a compile time statement, all cases have to be constant, which makes RTTI an incredibly redundant overhead.Like paulS said, overload, then the size is implicitly known:Code: [Select]bool Foo( char c ) { //no switch needed, type size known return true; }bool Foo( int i ) { //no switch needed, type size known return true; }Or te
|