delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/08/09:30:14

From: "Rafał Maj" <r_maj AT poczta DOT onet DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Type of endl
Date: Fri, 8 Sep 2000 15:21:11 +0200
Organization: Academic Computer Center CYFRONET AGH
Lines: 20
Message-ID: <8pap3s$b0m$1@info.cyf-kr.edu.pl>
NNTP-Posting-Host: d-94-53-10.cyfronet.krakow.pl
X-Trace: info.cyf-kr.edu.pl 968419260 11286 149.156.1.170 (8 Sep 2000 13:21:00 GMT)
X-Complaints-To: news AT cyf-kr DOT edu DOT pl
NNTP-Posting-Date: 8 Sep 2000 13:21:00 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,
What is type of "endl" ?

I want to write operator << that will take endl as argument like this :

cConsole {  public :
  cConsole() {};
  void println();
  operator<<(char* s) { cout<<s; }
  operator<<( unknown_type ENDL) {   // <<<<<<<
      println();
   }
};

main() {
  cConsole output;
  output << "hi !" << endl;
}


- Raw text -


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