description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C3740 |
Compiler Error C3740 |
11/04/2016 |
|
|
edb17a90-2307-4df6-943d-580460d26d2b |
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() {
}