2-10-2 "block scope" for classes and namespaces

Moderators: david ward, misra cpp

abgs
Posts: 12
Joined: Wed Sep 06, 2017 4:25 pm
Company: Gimpel Software

2-10-2 "block scope" for classes and namespaces

Postby abgs » Thu Feb 14, 2019 11:11 am


misra cpp
Posts: 145
Joined: Mon Jun 02, 2008 1:55 pm
Company: MISRA

Re: 2-10-2 "block scope" for classes and namespaces

Postby misra cpp » Wed Apr 10, 2019 2:44 pm

2-10-2 is not purely about block scopes, so your examples A, B, C and D are violations of this rule, but E isn’t as a derived class is not an inner scope with respect to the base.
Posted by and on behalf of
the MISRA C++ Working Group


Return to “6.2 Lexical conventions (C++)”

Who is online

Users browsing this forum: No registered users and 0 guests