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,984 of 33,346   
   Fulvio Esposito to Joe Bentley   
   Re: Is the string header file required?   
   12 Apr 13 06:56:14   
   
   From: esposito.fulvio@googlemail.com   
      
   { Reformatted; please limit your lines to 70 characters -mod }   
      
   On Friday, April 12, 2013 9:00:02 AM UTC+1, Joe Bentley wrote:   
   > It seems that a few compilers are letting me get away without   
   > including the string header file.   
   > Are they just being nice to me?   
   > Does the "standard" say anything about this?   
      
   That is just because in those implementations probably    
   includes string (directly or indirectly). The standard mandates that   
   you include all the needed headers, so your program is ill-formed.   
   This is because implementors have the freedom to organize standard   
   library headers as they wish, so there might be an implementation for   
   which  don't use  but some internal header    
   and you'd end up with some strange behaviours.   
      
      
   --   
         [ 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