minor. making valid ends of c++ class