-
Notifications
You must be signed in to change notification settings - Fork 25
Knowledgebase Programming: Clang implicit copy constructor warning
Lars Toenning edited this page Oct 9, 2023
·
1 revision
CLANG warning: definition of implicit copy assignment operator for 'CMeasurementUnit' is deprecated because it has a user-declared destructor
Solution:
//! Destructor
~CMeasurementUnit() = default;
+
+ //! Copy constructor
+ CMeasurementUnit(const CMeasurementUnit &) = default;
+
+ //! Copy assignment operator
+ CMeasurementUnit &operator =(const CMeasurementUnit &) = default;
- Home
- API documentation (Doxygen generated)
- Future of swift
- Style and Coding Standard
- Build swift
- Run swift as a developer
- Knowledgebase
- External resources
- Open Research Questions
- Aviation
- Programming
- Simulation
- Architecture