[Bug c++/14912] Do not print default template arguments in error messages

dave at boost-consulting dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 23 12:55:00 GMT 2005


------- Additional Comments From dave at boost-consulting dot com  2005-03-23 12:55 -------
Doesn't sound right to me.  

I think you should either show vector<T> or include A in the "with" clause of
vector<T,A>.  I'm sort of inclined to the former; Don't forget that parameter
names are not always so short.  Another related issue is that "with" clauses are
sometimes unhelpful, as in the case you cite.  vector<int> is much, much
clearer.  GCC ought to have a heuristic based on the lengths of the version with
the "with" clause and the version with a full argument substitution, to decide
whether to use "with" or just substitute the arguments in-line.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14912



More information about the Gcc-bugs mailing list