~= call copy ctor?

monarch_dodra monarchdodra at gmail.com
Fri Jul 20 09:13:19 PDT 2012


On Friday, 20 July 2012 at 16:02:18 UTC, Namespace wrote:
> If i @disable the postblit i get a strange behaviour:
>
> 	@disable
> 	this(this);

I think @disable is broken right now, and does nothing (ei: 
allows a default implementation of this(this) ).

If you replace by the C++ "declare but don't implement" scheme:
"this(this);"

Then you get a normal linker error.

So to answer your question: Yes, implicit Copy CTor.


More information about the Digitalmars-d-learn mailing list