build index no c++11