Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 822 Bytes

compiler-error-c2535.md

File metadata and controls

27 lines (22 loc) · 822 Bytes
description Learn more about: Compiler Error C2535
title Compiler Error C2535
ms.date 11/04/2016
f1_keywords
C2535
helpviewer_keywords
C2535
ms.assetid a958f83e-e2bf-4a59-b44b-d406ec325d7e

Compiler Error C2535

'identifier' : member function already defined or declared

This error could be caused by using the same formal parameter list in more than one definition or declaration of an overloaded function.

If you get C2535 because of the Dispose function, see Destructors and finalizers for more information.

The following sample generates C2535:

// C2535.cpp
// compile with: /c
class C {
public:
   void func();   // forward declaration
   void func() {}   // C2535
};