Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #6745

Re: Clarification on #include <ostream>

From "Bo Persson" <bop@gmb.dk>
Newsgroups comp.lang.c++
Subject Re: Clarification on #include <ostream>
Date 2011-06-14 18:00 +0200
Message-ID <95petfFu28U1@mid.individual.net> (permalink)
References <ostream-20110614175413@ram.dialup.fu-berlin.de>

Show all headers | View raw


Stefan Ram wrote:
>  The C++ standard from the 90s said that ť#include <ostream>Ť
>  was required to use ť<<Ť as in ť::std::cout << 0Ť.
>
>  But since no implementation required this, it was often said
>  to be a defect in the standard.
>
>  Has this requirement been removed from the standard in the
>  meantime?

Yes, the new standard (C++11) requires <iostream> to include <istream> 
and <ostream>.



Bo Persson

Back to comp.lang.c++ | Previous | Next | Find similar | Unroll thread


Thread

Re: Clarification on #include <ostream> "Bo Persson" <bop@gmb.dk> - 2011-06-14 18:00 +0200

csiph-web