[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
MISRA Bulletin Board • MISRA C++ compliant definition of NULL
Page 1 of 1

MISRA C++ compliant definition of NULL

Posted: Wed Aug 05, 2009 3:17 pm
by jorgen_h_karlsson

Re: MISRA C++ compliant definition of NULL

Posted: Tue Oct 11, 2016 10:23 am
by misra cpp
The ODR does not apply to const declarations as they have internal linkage, not external (the definition of the ODR explicitly says it only applies to objects with external linkage). So the examples quoted are compliant.

The first paragraph of the rationale will be replace with the following in "MISRA C++:2008 Technical Corrigendum 1":
"It shall be possible to include a header file into multiple translation units without violating the One Definition Rule. See section 6.3.2 for an explanation of the ODR."