VC++ 7.1 does not require a user defined ctor when defining a constant
- From: "Angel Tsankov" <fn42551@xxxxxxxxxxxxxxxx>
- Date: Wed, 22 Mar 2006 14:58:42 +0200
Defining a constant of a class or a struct type requires a user defined ctor, right? If so, why does VC++ 7.1 compile the following code:
struct s { } const a;
.
- Follow-Ups:
- Re: VC++ 7.1 does not require a user defined ctor when defining a constant
- From: Carl Daniel [VC++ MVP]
- Re: VC++ 7.1 does not require a user defined ctor when defining a constant
- Prev by Date: Re: BYTE* usage insted of void* as generic function parameter
- Next by Date: Re: VC++ 7.1: issue with undefined classes
- Previous by thread: AutoScaleBaseSize for Form
- Next by thread: Re: VC++ 7.1 does not require a user defined ctor when defining a constant
- Index(es):