Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A8-4-5: Should have an exception for move constructors
#2
Its a bit difficult to answer your question as B doesn't have any members. We assume it has a member 'sometype *ptr;' but does it have any other members?

If 'ptr' is the only member, then we'd say that the example is compliant with both A8-4-5 and A12-8-1.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: A8-4-5: Should have an exception for move constructors - by misra cpp - 14-02-2025, 01:25 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)