Hacker News new | past | comments | ask | show | jobs | submit login

You can declare and inline-define a function in a CPP file and you don't need inline because there are no other places that can import it.

It's only needed for functions defined in header files where multiple definitions may exist after compiling object files.




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

Search: