Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
0-1-8 and OO design pattern
#1
0-1-8 restricts such elegant design pattern as e. g. observer/listener (with selective handling of a subset of notifications by observer).
So is the "intended" use of empty virtual methods due to design OK? May design goals be classified as "side effect"?
<t></t>
Reply
#2
Design goals cannot be considered as side effects, as they are not machine checkable. The use of design patterns such as suggested may always be permitted by deviation.

Whether explicit exceptions are required for this rule may be considered for a future edition
Posted by and on behalf of
the MISRA C++ Working Group
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)