Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule A12-8-4 and default constructing data members in a move constructor
#3
We agree the intent of 12-8-4 was to prevent calls made to copy constructors and/or copy assignment operators, so you are compliant.

However, what you are proposing violates the spirit of the rationale for 12-8-4, and may be a violation of other rules.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: Rule A12-8-4 and default constructing data members in a move constructor - by misra cpp - 17-06-2022, 12:29 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)