Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 553 Bytes

compiler-error-c3740.md

File metadata and controls

26 lines (21 loc) · 553 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3740
Compiler Error C3740
11/04/2016
C3740
C3740
edb17a90-2307-4df6-943d-580460d26d2b

Compiler Error C3740

templates cannot source or receive events

A templated class or struct cannot contain events.

The following sample generates C3740:

// C3740.cpp
template <typename T>   // Delete the template specification
struct E {
   __event void f();   // C3740
};

int main() {
}