P
Phlip
I use a c++ front end to compile C code, I run into problems when
void* pointers are implicitly converted. Is there a fix to this kind
of issue?
One can write C code that is also "C-style" C++ code. This requires avoiding
C's known abuses, such as converting from void* too easily, and requires
adding C-style typecasts here and there. So "C-style" is a _programmer_
dialect that fits C code into C++ compilers...
IIRC:
char * foo = (char*)malloc(42);
C++ requires the typecast and C permits it.