Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!ENUXHA.EAS.ASU.EDU!nwatson From: nwatson@ENUXHA.EAS.ASU.EDU (Nathan F. Watson) Newsgroups: comp.sys.sgi Subject: C++, Templates, Preprocessor on the SGI (cfront) Message-ID: <9106272305.AA10159@enuxha.eas.asu.edu> Date: 27 Jun 91 23:05:09 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: nwatson@enuxha.eas.asu.edu (Nathan F. Watson) Organization: Arizona State University Lines: 20 I am using cfront (AT&T C++) on an SGI, and would like to use the '##' (concatenator) preprocessor 'statement' when defining a template. from my understanding, a file #define concat(a,b) a##b concat(asdf,jkl) should produce the file asdfjkl after preprocessing. I've tried variations of the above (e.g. putting spaces before, after the "##"). What do I need to do to allow this? Forgive me if the question is frequently asked, as I'm new to C++. --------------------------------------------------------------------- Nathan F. Watson Arizona State University nwatson@enuxha.eas.asu.edu Computer Science Department "Remember: No matter where you go, there you are." - Mr. B. Banzai