r/C_Programming • • Jul 17 '26

C with classes

I'm curious to know: who uses some C++ features when coding in C? And what feature(s) are you using?

29 Upvotes

79 comments sorted by

View all comments

Show parent comment

4

u/tellingyouhowitreall Jul 18 '26

I don't need it for anything, it just cleans up a lot of marshalling code I do.

I do OS stuff, usually I try to escape C and ASM pretty early, but there are a few places C is better than alternatives for codegen, especially with restrict. It would just be nice not to do all of the bookkeeping by hand.