News for hackers. Stuff that matters.
Re:What =delete means by gpderetta on Monday October 18, 2021 @03:58PM (#28910781)
In addition to =0 mentioned elsethread, there is also =default which will force the generation of a default function that would be otherwise suporesed.

You can use =delete to delete any overload of a function, be it class member or namespace scope.

Languages evolve; =delete and default were added to get rid if a bunch of common hacks and the language is better for that (at least for delete, default has a bunch of pitfalls of its own unfortunately).

There are no comments on this comment yet.