C++ err msgs [ was Re: building libstdc++-v3 from the 20000105 snapshot dies with multiple def errors. ]
Steven King
sxking@uswest.net
Wed May 10 14:13:00 GMT 2000
On Wed, 10 May 2000, llewelly@dbritsch.dsl.xmission.com wrote:
> Many of the std template classes (all of the container classes) have one
> or more default template parameters, which are usually left at their
> defaults, and are seldom important to deciphering the error message.
>
> I would like to see an option to g++ that omit default template parameters
> in typenames that matched the default.
>
> So instead of seeing
>
> std::vector<int,std::allocator<int> >
>
> you would see
>
> std::vector<int>
>
> This would help those of us who use stuff like map<string,vector<int> > on
> a regular basis ...
Right. Thats why I have
s/,\([ ]*\)std::allocator<\([^>]*\)>//g
as the first thing in the script.
The sed approach is also nice for replacing user defined types with 'typedefs';
I had a template that took 5 parameters, each of might be template that took
several parameters, which themselves might be templates; I was getting names
several hundred characters long....
--
Steven King
sxking@uswest.net
More information about the Libstdc++
mailing list