home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 32,046 of 33,346   
   Peter Liedermann to Martin B.   
   Re: c++ 11 and MS Visual Studio 11   
   24 Mar 12 02:03:05   
   
   From: peter09876@hispeed.ch   
      
   On Wed, 21 Mar 2012 00:17:42 +0100, Martin B. <0xCDCDCDCD@gmx.at> wrote:   
      
   > On 19.03.2012 19:13, Andreas Weis wrote:   
   >> On 18.Mar.12 21:30, Peter Liedermann wrote:   
   >> ...   
   >>> Are certain parameter values in MS VS C++ 11 recommended to enforce   
   >>> the standard?   
   >>   
   >> Warning Level 4 is a must (/W4). (...)   
   >>   
   >   
   > Au contraire. Warning Level 4 is just basically unusable. If you have   
   > even one piece of legacy code, it's sure to create lots and lots of   
   > useless false positives, where you're not even sure how to begin to   
   > resolve them.   
      
   I have just activated /W4 in VSC++ 2010 express.  It created lots of   
   stuff much of it essentially reminding me that the code is under   
   construction (unused variables and parameters etc.) Interestingly, in   
   my case, there seems to be nothing having to do with boost, probably   
   because there wasn't any recompilation of it (Only a complete rebuild   
   of the VS project). I do get incomprehensible stuff however from /Za   
   (in vsc++2010).  Since this option seems to be deprecated anyway, I do   
   not use it.   
      
   Anyway, having read the discussion, I conclude that the proper way to   
   be reasonably independent of MS would be to set up a   
   linux/gcc+-environment on a spare machine and test baselines from time   
   to time, although with boost, this might not be straightforward.   
      
   > I think many Boost headers are also *not* W4 level clean, but I   
   > might be wrong. (I'm actually not even sure about the Windows or MFC   
   > headers and W4 ...)   
      
   Possible, then I do not seem to be using them.   
      
   > There are a couple of useful W4 warnings, but enabling all seems to   
   > create more work'n it's worth.   
      
   In my opinion, temporary use of /W4 is useful as quick reminder for   
   forgotten under-construction stuff when one thinks to have reached   
   e.g. an internal milestone or baseline.   
      
   Cheers,   
   Peter   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca