Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!ncar!gatech!gt-eedsp!baud From: baud@gt-eedsp.UUCP (Kurt Baudendistel) Newsgroups: comp.lang.c++ Subject: typedef's of classes Keywords: c++, typedef, class Message-ID: <414@gt-eedsp.UUCP> Date: 25 Aug 88 17:34:58 GMT Distribution: na Organization: School of Electrical Engineering, Ga. Tech, Atlanta, GA 30332 Lines: 22 if i have defined a class CLASS and create a typedef of it, such as typedef CLASS NEW_CLASS; i would think that i could use NEW_CLASS just like i use CLASS, with constructors, etc. is this true? my gnu c++ compiler thinks that this is the case. it says that CLASS a(5); // legal constructor NEW_CLASS b(5); // illegal constructor is this the same as at&t cfront? is this the way c++ is supposed to work? does this make sense? i think that this should be a legal construct, since this is how i use typedef in c. what do you think? -- Kurt Baudendistel [GRA McClellan] Georgia Tech, School of Electrical Engineering, Atlanta, GA 30332 USENET: ...!{allegra,hplabs,ihnp4,ulysses}!gatech!gt-eedsp!$me INTERNET: $me@gteedsp.gatech.edu