Path: utzoo!utgpu!water!watmath!clyde!rutgers!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uiucdcsm!grunwald From: grunwald@uiucdcsm.cs.uiuc.edu Newsgroups: comp.lang.c++ Subject: enums Message-ID: <4800018@uiucdcsm> Date: 12 Feb 88 20:49:00 GMT Lines: 22 Nf-ID: #N:uiucdcsm:4800018:000:400 Nf-From: uiucdcsm.cs.uiuc.edu!grunwald Feb 12 14:49:00 1988 I want to have an ostream printer for enums, but I've got the feeling that enums are just ints internall. If I say --- enum foo { bar, baz }; ostream& operator<<(ostream&, foo) --- I get an error stating that << is defined in two ways, which I think is related to there being an << operator for int. So, anyway to have per-enum printers? dirk grunwald univ. of illinois grunwald@m.cs.uiuc.edu