Re: Why can't I compile this unit?



Greg Comeau wrote:
However, there is a minority of cases where the message might be misleading. So, the real question is where to draw a line between verbosity and generality. And it is not an easy question to answer.

It's not, but I'm curious where the line is "incorrect" here.

I don't say that the message from Cameau compiler was incorrect or bad. It is actually better than MS compiler message because of hinting questions, which are right most of the time. I'm trying to say that MS message is not _that_ bad as Ulrich implies. Indeed, it's a sort of "low-level" message ("missing token"). However, in both messages, speaking in C++ terms, it requires some "implicit conversion" in user's mind until he/she gets to real problem:

MS: missing ';' before 'token2' [, therefore something before 'token2' wasn't interpreted as a type name, why is that?]

Cameau: 'pair' is not a template [, but I know it is a template, so why is that message? oh, the question is right about missing namespace!]

So, both messages are quite close while Cameau's is better a bit because a) it says that 'token' was not interpreted as template name and b) it makes a hint, which is useful most of the time.

Alex
.



Relevant Pages

  • Re: Thinking in C++ Volume II
    ... >Thanks for the pointer - I skimmed the template stuff and it's quite ... >good but I think it's still missing a few concepts. ... as much when I'm teaching one of my courses. ... well-treaded-upon context) than it is to anticipate all the relevant ...
    (alt.comp.lang.learn.c-cpp)
  • RE: My styles as default in new email
    ... No you are not missing anything. ... easy to do but the people who designed Outlook 2007 have hidden anything ... template route....with the same results as you. ... new emails don't have the styles I define in the ...
    (microsoft.public.outlook)
  • Re: Keyboard Shortcut for new word template
    ... I must be really tired or stupid, but I must be missing something. ... made the modifications to the document that I had saved in my template. ... > Sorry Tim: ... The macro buttons go gray at the ...
    (microsoft.public.mac.office.word)
  • Re: mediawiki broken by recent security fixes
    ... I don't run mediawiki sorry. ... But you're missing a template, judging by ...
    (Debian-User)
  • Re: GH: The DUMBEST Spoiler Ever
    ... Yes, and, of course the real question is not, "How can he be missing if he ... And aside from the obvious reply," Well, you didn't think it was raining ... one wonders why someone is asking this of the Sports desk ...
    (rec.arts.tv.soaps.abc)

Loading