Default constructors.

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
andrecaldas
Posts: 300
Joined: Fri Jan 27, 2023 8:45 pm
Contact:

Default constructors.

Post by andrecaldas »

In some places we have macros for automatically generating default (copy and move) constructors and assignments.

For example: this is done in ObjectIdentifier.

I used to program in C++ many years ago... there was no C++11 at the time. I think there was no move operation.

But, as far as I remember, in FreeCAD we can assume C++17. So, I'd like to ask:
Do we still need those macros to create default constructors? Or can we simply remove them?
Post Reply