Using index_sequence and make_index_sequence from C++14.