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 31,462 of 33,346   
   Miles Bader to Andrew   
   Re: Smart pointers and exceptions   
   13 Sep 11 10:49:11   
   
   5213e3e5   
   From: miles@gnu.org   
      
   Andrew  writes:   
   >> This is probably a compiler defect or some "extension mode" (Do you   
   >> use a Visual Studio compiler?). It seems that the compiler allows   
   >> binding a temporary to a reference to non-const, which is illegal   
   >> in standard C++.   
   >   
   > This is definately a compiler bug in VS 2005 (aka VC8). I am dual   
   > compiling on my project, VC8 and GCC and GCC was picking up many of   
   > these that VC8 was letting through. Furthermore, it is not an   
   > 'extension', it is just a bug.   
      
   Unfortunately, it probably also falls into the category of "bug we're   
   very reluctant to fix because it would break people's programs [for   
   those people who only ever use VS/VC]."   
      
   -Miles   
      
   --   
   `To alcohol!  The cause of, and solution to,   
    all of life's problems' --Homer J. Simpson   
      
      
         [ 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