Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 648 Bytes

compiler-error-c2556.md

File metadata and controls

25 lines (21 loc) · 648 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2556
Compiler Error C2556
11/04/2016
C2556
C2556
fc4399ad-45b3-49fd-be1f-0b13956a595a

Compiler Error C2556

'identifier' : overloaded functions only differ by return type

The overloaded functions have different return types but the same parameter list. Each overloaded function must have a distinct formal parameter list.

The following sample generates C2556:

// C2556.cpp
// compile with: /c
class C {
   int func();
   double func();   // C2556
   int func(int i);   // ok parameter lists differ
};