Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Limitations to functions declared as `extern "C"`? C++ features still usable?

Does extern "C" do something more besides specifying an identifier should not be mangled?

Are C++ features available in functions that have been declared as extern "C"?

like image 1000
dtech Avatar asked Oct 21 '22 14:10

dtech


1 Answers

It only affects the name mangling so that the external visibility is clear to other applications.

like image 199
Roger Rowland Avatar answered Oct 24 '22 08:10

Roger Rowland