This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [libstdc++] New implementation of concept checking


Toon Moene <toon@moene.indiv.nluug.nl> writes:

| Gabriel Dos Reis wrote:
| 
| >                 std::vector<int> v(9.0, 3.14);
| 
| Well, I hope the error message helps C++ programmers. 

:-)

| ... It took me two
| attempts to guess
| 
| 		std::vector<double> v(9, 3.14);
| 
| but I cannot say I really understood the 20+ line `explanation'.

Don't feel bad, even the greatest C++ experts are puzzled by
diagnostics about templates.

It is much easier to improve with signature matching support.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]