Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 652 Bytes

compiler-error-c2557.md

File metadata and controls

22 lines (21 loc) · 652 Bytes
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Compiler Error C2557 | Microsoft Docs
11/04/2016
cpp-tools
article
C2557
C++
C2557
48a33d82-aa16-4658-b346-2311fcb39864
6
corob-msft
corob
ghogen

Compiler Error C2557

'identifier' : private and protected members cannot be initialized without a constructor

Only members and friends can assign a value to a private or protected member. Nonpublic members should be initialized in the class constructor.