struct throws errors if it has a DTor

Druzhinin Alexandr news at digitalmars.com
Sat Dec 8 05:15:39 PST 2012


On 08.12.2012 18:10, Namespace wrote:
> Why this code compiles without Dtor, but not when I have one?
>
> http://dpaste.dzfl.pl/2792b974
because you have const here:
	static const Color Black;
	static const Color White;
	static const Color Red;
	static const Color Green;
	static const Color Blue;
	static const Color Yellow;
	static const Color Magenta;
	static const Color Gray;

Alexandr


More information about the Digitalmars-d-learn mailing list