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 33,001 of 33,346   
   Joseph Hesse to Fulvio Esposito   
   Re: Is the string header file required?   
   25 Apr 13 12:15:28   
   
   From: joeh@googlemail.com   
      
   On 04/12/2013 08:56 AM, Fulvio Esposito wrote:   
   > { 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.   
   >   
   >   
   Are there any tools that would check that when I use the string class   
   that I include the header for string?   
      
      
   --   
         [ 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