Hi,<div><br></div><div>Here is a suggestion that unfortunately I will not be able to try to implement, but maybe someone around here would like to consider it.</div><div>It's not a critical nor really needed feature but I think it might be very interesting.</div>
<div><br></div><div>The idea would be to add references to paragraphs of the language standard. </div><div><br></div><div>I got his idea while reading the answers of this question : <a href="http://stackoverflow.com/questions/7801228/can-i-specialize-a-class-template-with-an-alias-template">http://stackoverflow.com/questions/7801228/can-i-specialize-a-class-template-with-an-alias-template</a></div>
<div>In that answer there is a very clear error log from CLang (yeah clang!) then the writer had to add references to the standard to explicitly state what is allowed or not.</div><div><br></div><div>1. Allowing the compiler to provide some additional references to the standard would greatly help C++ programmers who cares about this kind of details/knowledge.</div>
<div>You can see a lot of answers on <a href="http://stackoverflow.com">stackoverflow.com</a> that have to refer to the standards to explain some ambiguous cases, like when undefined behavior will occur.</div><div>I think that when (not if, it seems) the C++11 standard will be available to anyone for cheap, it will help spreading knowledge about correct and portable C++.</div>
<div><br></div><div>I suggest to make it a plugin or flag or something very optional.</div><div><br></div><div>2. Maybe even citing the standard document would even be more useful, but would make some errors very verbose. </div>
<div>I think that if it's an interesting option too, but might require that the standard document is provided in textual (unicode) format.</div><div>It would also be a very optional feature.</div><div><br></div><div><br>
</div><div>I'm not sure this feature will be really useful, but maybe it will? What do you think?</div><div><br></div><div>Thanks for your time.</div><div><br></div><div><br></div><div>Joël Lamotte</div>