[cpp] Move reinterpret from Pointer to ConstPointer