Template Template Matching Problem on Defaults (old g++ extension induced problem -- bug 9737)
Wolfgang Bangerth
bangerth@ices.utexas.edu
Mon Sep 20 17:47:00 GMT 2004
> Anyone have an update for September 2004?
I don't, but I just files PR 17570 for this. You may want to put yourself
on the CC list.
> PS: I also don't get what analogue this extension was suppose to
> maintain with function function parameters (see bug report). I just
> finished checking, and g++ certainly does not allow things like
> assigning an n (non default) plus m (default) argument function to an n
> argument function pointer.
That isn't the point. The reason was so that people can match
std::vector<int>
std::set<int>
...
etc to template template parameters with only one template argument,
despite the fact that these classes have more than just one, and possibly
different numbers of template arguments, all of which except for the first
have default arguments.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ices.utexas.edu
www: http://www.ices.utexas.edu/~bangerth/
More information about the Gcc
mailing list