This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: <iosfwd> also standard for std::string declaration?
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Cc: alfred137 at yahoo dot com
- Date: Tue, 17 Jun 2003 14:42:04 -0700
- Subject: Re: <iosfwd> also standard for std::string declaration?
- References: <20030617212315.98142.qmail@web13503.mail.yahoo.com>
On Tue, Jun 17, 2003 at 02:23:15PM -0700, landrum Alfred wrote:
> I'm trying to reduce my compile times. I have several
> headers that are including <string>, even though they
> only need a declaration.
>
> I noticed that <iosfwd> on my RH8 box includes
> bits/stringfwd.h.
>
> Does this imply that including <iosfwd> is a standard
> way to get a forward declaration of std::string?
No, it's a non-standard way. BTW, have you measured a difference?
Nathan Myers
ncm-nospam@cantrip.org