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
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.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: /cclassC { intfunc(); doublefunc(); // C2556intfunc(int i); // ok parameter lists differ };
close