Converting C source to C++

前端 未结 11 2239
迷失自我
迷失自我 2021-01-30 16:52

How would you go about converting a reasonably large (>300K), fairly mature C codebase to C++?

The kind of C I have in mind is split into files roughly corresponding to

11条回答
  •  感动是毒
    2021-01-30 17:20

    What about:

    1. Compiling everything in C++'s C subset and get that working, and
    2. Implementing a set of facades leaving the C code unaltered?

    Why is "translation into C++ mandatory"? You can wrap the C code without the pain of converting it into huge classes and so on.

提交回复
热议问题