Errore del compilatore C3740
I modelli non possono generare o ricevere eventi
Una classe o uno struct basato su modelli non può contenere eventi.
L'esempio seguente genera l'errore C3740:
// C3740.cpp
template <typename T> // Delete the template specification
struct E {
__event void f(); // C3740
};
int main() {
}