MISRA Discussion Forums

Full Version: Synchronization with MISRA C 2012
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear MISRA team,

i recently stumbled upon Rule 21.9 of MISRA C 2012 which prohibits use of bsearch/qsort.
Currently, there is no equivalent in MISRA C++ 2008, so it would be legal to use bsearch/qsort in C++ (if you use cstdlib that is).
Maybe this is another synchronization topic for the next version of the standard (along with the preprocessor usage, see https://misra.org.uk/forum/viewtopic.php...1549#p3031).
Thanks.
Work is currently under way on a new version of MISRA C++ document. One of its aims is to update the guidelines to bring them inline with the revised guidance in MISRA C:2012