3 ms·
Having to delete the default constructor means it’s opt-out, not opt-in
by dieortin 2y ago
Having to delete the default constructor means it’s opt-out, not opt-in
- kccqzy 2y agoI don't think you really know what a real-life C++ code base looks like. Deleting the default constructor often happens implicitly with no syntax needed. This often happens when you define a custom constructor or when its member doesn't have a default constructor.