Rule M5-0-17 (required, implementation, automated)

Subtraction between pointers shall only be applied to pointers that address elements of the same array. See MISRA C++ 2008 [7]