7 Jun
2008
7 Jun
'08
7:15 p.m.
Kenneth Porter wrote:
Wow, that surprised me that it lacked that, as I'm so used to it on Windows. But I mostly code in C++ there, so perhaps the conversion in C is legal?
Yes, implicit int->enum conversion is allowed in C, but not C++. (TC++PL p. 817)
(And implicit cast from void* to any other pointer type is not allowed in C++, either)
Anders.