W8105 %s member '%s' in class without constructors (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index


A class that contains constant or reference members (or both) must have at least one user-defined constructor.

Otherwise, there would be no way to ever initialize such members.

This warning is generated for a reference or constant member in a class without constructors if ANSI mode is not set. In ANSI mode, this is an error (E2232).

(Command-line option to suppress warning: -w-mnc)