Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A12-1-1 - Does it apply to POD structs?
#4
The intended reading of the rule is ‘if a class has a user-declared constructor, then ….’.  As a POD struct cannot have a user-declared constructor (that would stop it being POD), the rule doesn’t apply.
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Messages In This Thread
RE: A12-1-1 - Does it apply to POD structs? - by misra cpp - 27-10-2023, 03:46 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)