Export (0) Print
Expand All
Expand Minimize

Compiler Error C3409

Error Message

empty attribute block is not allowed

The square brackets were interpreted by the compiler as an attribute block, but no attributes were found.

Example

The following sample generates C3409.

// C3409.cpp
// compile with: /c
#include <windows.h>
[]   // C3409
class a {};

// OK
[object, uuid("00000000-0000-0000-0000-000000000000")]
__interface x {};

[coclass, uuid("00000000-0000-0000-0000-000000000001")]
class b : public x {};

Community Additions

ADD
Show:
© 2014 Microsoft