Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Almost every C program does `int *c = malloc(sizeof(int) *10)` or similar, which has always been invalid C++.


I believe most compilers have switches to allow this. The real issue you might run into that can't be worked around easily is if the C source uses a C++ keyword as an identifier.


    #define new new_




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: