From: Paul A. Bristow (boost_at_[hidden])
Date: 2003-04-29 10:46:51
| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]]On Behalf Of Terje Slettebø
| Sent: Friday, April 25, 2003 5:33 PM
| To: Boost mailing list
| Subject: Re: [boost] Boost Library Guidelines
| > May I suggest that we add to "Aim for ISO Standard C++ ..."
| > "Try to code so that compiles with 'strict' compiler settings ...
| I use the highest warning level (4) for MSVC and Intel C++, and strict mode
| for the latter, to not ignore any warnings/remarks by default.
| In the cpp-files, not headers, I then selectively disable remarks/warnings
| harmless (and there's a lot of them), until it compiles without
| remarks/warnings. I think one should not get used to ignore warnings in the
| output, or one could easily miss some which _does_ matter, which is why I
| disable the ones that don't.
| In many cases, on level 4, there's _no_ practical way to turn off a
| remark/warning, without using #pragma. Therefore, I think it may be better
| to use a #pragma (in the cpp-file), than telling the user to ignore the
| remarks/warnings. In header-only libraries, like much of the Boost
| libraries, this leaves it up to the user, anyway.
This sounds 'best practice'. If others agree, can it be added to the
Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK
+44 1539 561830 Mobile +44 7714 33 02 04
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk