cpp: returning type is const reference