What is the use of using a subset of C-style rules in C++
This article mainly explains "what is the role of using a subset of C-style rules in C++", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what is the use of a subset of C-style rules in C++?"
If you want ABI that can be applied to different compilers, use a subset of C-style rules Reason (reason)
Different compilers generate different binary structures for classes, exception handling, function names, and other implementation details.
Exception (exception)
The emergence of a common ABI on some platforms can free you from stricter restrictions.
Note (Note)
If you use a single compiler, you can use full C++ in the interface. Doing so may cause the compiler to be recompiled when the compiler is updated to a new version.
Translator's note: the change of the version of the compiler may also affect the change of the compilation result. (cannot be enforced) it is difficult to reliably identify where the interface definition will become part of the ABI.
Translator's note: ABI (Application Binary Interface): application binary interface, which describes the binary definition of the interface between the application and the platform, or between the modules of the application.
Translator's note: it is impossible to decide whether or not to call the police.
At this point, I believe you have a better understanding of "what is the role of using a subset of C-style rules in C++". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!