update class_tpl.cpp/h