do we not need a definition of trackWeight when we do not have C++11?