Updating library and C++ template