C++: simplify output from suggest_alternatives_for