Fixed error message. Now using std::distance instead of previous pointer arithmetic. Added asserts.
Fixed error message. Now using std::distance instead of previous pointer
arithmetic. Added asserts.

code-google-com/cortex-vfx,code-google-com/cortex-vfx,code-google-com/cortex-vfx,ruschelp/cortex-vfx,code-google-com/cortex-vfx,ruschelp/cortex-vfx,ruschelp/cortex-vfx