This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bug in libstdc++ documentation


Hi,

Quick bug report.  The sample code for #include <iosfwd> located here:

	http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#10

is incorrect.  std::ifstream is used in the example to declare a full
type, instead of a reference or pointer, and that doesn't compile with
just <iosfwd>.

- Chris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]