Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 667 Bytes

compiler-error-c2509.md

File metadata and controls

34 lines (27 loc) · 667 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2509
Compiler Error C2509
11/04/2016
C2509
C2509
339c1fcd-ec4a-456c-9f18-a9b24d9921af

Compiler Error C2509

'identifier' : member function not declared in 'class'

The function is not declared in the specified class.

Example

The following sample generates C2509.

// C2509.cpp// compile with: /cstructA { virtualintvfunc() = 0; virtualintvfunc2() = 0; }; structB : privateA { using A::vfunc; virtualintvfunc2(); }; intB::vfunc() { return1; } // C2509intB::vfunc2() { return1; } // OK
close