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 |
|
article |
|
|
|
48a33d82-aa16-4658-b346-2311fcb39864 |
6 |
corob-msft |
corob |
ghogen |
'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.