使用模板的编译错误往往模糊不清,而且不容易解开,除非一个真正精通模板。 许多时候专家程序员可能也会被这些错误所困扰。 我相信我们大多数人已经多次感受到了它的困苦。
As I understand the C++ standard only mandates implementations to provide a diagnostic for an ill-formed program but not how or what diagnostic messages shall be provided.
However, are there any guidelines laid out by the Standards committee to overcome this problem of not easily decipherable diagnostics (especially) in case of templates. Has this ever even come up for a discussion?
Also, are the mainstream implementations doing something about or have planned about this issue?
The question is quite open ended for discussion but with the SO C++ community being one of the most active C++ communities I am sure someone somewhere must have at least some idea of this. Also, a few of Standards committee members (I know) actively participate on the C++ tag, I am hoping they might have some information on this if et al.