Delen via


Compilerfout C2254

'functie': zuivere specificatie of abstracte override-specificatie niet toegestaan voor vriendfunctie

Opmerkingen

Een friend functie wordt opgegeven als puur virtual.

Example

In het volgende voorbeeld wordt C2254 gegenereerd:

// C2254.cpp
// compile with: /c
class A {
public:
   friend void func1() = 0;   // C2254, func1 is friend
   void virtual func2() = 0;   // OK, pure virtual
   friend void func3();   // OK, friend not virtual nor pure
};

void func1() {}
void func3() {}