On 21 Sep 2005, at 10:18, Akim Demaille wrote:

I
confess I have no experience with signals in C++ though, and I guess
it is then pretty much the same as with C.

The C++ standard, 18.7:5, says:

The common subset of the C and C++ languages consists of all declarations, definitions, and expressions that may appear in a well formed C++ program and also in a conforming C program. A POF (''plain old function'') is a function that uses only features from this common subset, and that does not directly or indi- rectly use any function that is not a POF. All signal handlers shall have C linkage. A POF that could be used as a signal handler in a conforming C program does not produce undefined behavior when used as a signal handler in a C++ program. The behavior of any other function used as a signal handler in a C++ pro-
gram is implementation defined.

  Hans Aberg




Reply via email to