26 Jan
2008
26 Jan
'08
4:50 p.m.
Hi is their anyway for boost to allow only explicit conversion... like class MyInt { // some code inside.... operator int() {} }; myIntCalc(int, int); MyInt a, b; f = myInt(a, b); // compile error no implicit conversion. int x = boost::numeric_cast<int>(a); // k allow int y = static_cast<int>(b); // k allow.