News for hackers. Stuff that matters.
Re:What =delete means by bialpio on Monday October 18, 2021 @05:32PM (#28912054)
IIRC this will make the compiler error less helpful than it could be? I think you'd get an "attempt to use private member" instead of "attempt to use deleted member". End result is probably the same, but it feels like you're not saying what you mean with the code.

Edit: NVM, looks like all major compilers will say that the copy ctor is deleted. https://godbolt.org/z/jTd3714Tb

There are no comments on this comment yet.