Rule 2-10-5 and function overloading - Printable Version +- MISRA Discussion Forums (https://forum.misra.org.uk) +-- Forum: MISRA C++ (https://forum.misra.org.uk/forumdisplay.php?fid=18) +--- Forum: MISRA C++:2008 rules (https://forum.misra.org.uk/forumdisplay.php?fid=19) +---- Forum: 6.2 Lexical conventions (C++) (https://forum.misra.org.uk/forumdisplay.php?fid=131) +---- Thread: Rule 2-10-5 and function overloading (/showthread.php?tid=560) |
Rule 2-10-5 and function overloading - pkruk - 23-07-2008 Hello, does rule 2-10-5 disallows function overloading? What is the definition of "identifier reuse"? For example: Code: class C{}; Re: Rule 2-10-5 and function overloading - ggoulas - 25-02-2011 Hello, Did you get any answer to this? Does anybody have an opinion on 2-10-5 and function overloading? thank you. Re: Rule 2-10-5 and function overloading - misra cpp - 11-10-2016 The short answer is No, this rule does not prohibit function overloading. The intent was to prohibit the reuse of identifiers for unrelated objects. This will be clarified in a Technical Corrigendum |