3 ms·
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
by gpderetta 5y ago
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).