delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/07/03:05:28

From: "hjy" <hjy AT ceec DOT edu DOT tw>
Newsgroups: comp.os.msdos.djgpp
Subject: ostream_iterator undeclared in namespace 'std'
Date: Mon, 7 Oct 2002 14:59:41 +0800
Organization: National Taiwan University
Lines: 12
Message-ID: <anrb6r$75$1@gemini.ntu.edu.tw>
NNTP-Posting-Host: 203.68.31.83
X-Trace: gemini.ntu.edu.tw 1033973787 229 203.68.31.83 (7 Oct 2002 06:56:27 GMT)
X-Complaints-To: postmaster AT news DOT ntu DOT edu DOT tw
NNTP-Posting-Date: 7 Oct 2002 06:56:27 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I use declaration
    std::ostream_iterator<int> output(cout," ");
in C++ program, the compiler complained:
  ostream_iterator undeclared

The same declaration is OK in Visual C++.

What is the problem?

Thanks


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019