Update rank-index.hpp

Change 'ifdef' to 'if defined()'