[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string.h included in iostream
From: |
Jens Theisen |
Subject: |
Re: string.h included in iostream |
Date: |
16 Oct 2006 22:53:33 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
red floyd <no.spam@here.dude> writes:
> > My question is is it a standard behavior ? Should string.h be
> > included in iostream ?
> >
>
> I believe that's implementation dependent. Your code, as posted, is
> ill-formed (index is undefined). As far as I can see, ISO/IEC
> 14882:2003 provides no guarantees as to what nested includes are in
> any standard header (hence the technical need to include <ostream> for
> cout).
The more interesting question is if it is even legal to clutter the
global namespace with such identifiers - let alone all the macros
dragged in.
--
Cheers, Jens