C++ Logo

std-discussion

Advanced search

Re: In value-initialization, why does a (unselected) user-provided or deleted default constructor prevent zero-init?

From: Tam S. B. <cpplearner_at_[hidden]>
Date: Sat, 19 Dec 2020 08:28:25 +0000
> So is giving a class multiple default constructors, but you don't seem to have a problem doing that ;) Well, I agree that having a constructor template that can't get called is ridiculous. It's even weirder that such a constructor template actually has an effect according to the standard. I hope that the standard could be fixed so that the constructor template in question is really meaningless and effectless as it should be.

Received on 2020-12-19 02:28:28