Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!samsung!caen!news.cs.indiana.edu!news.nd.edu!mentor.cc.purdue.edu!burdick From: burdick@mentor.cc.purdue.edu (Bill Burdick) Newsgroups: comp.sys.next Subject: libg++ revealed Summary: changes to String.h in libg++/g++-include Message-ID: <7305@mentor.cc.purdue.edu> Date: 4 Mar 91 20:55:45 GMT Reply-To: burdick@mentor.cc.purdue.edu (Bill Burdick) Organization: Purdue University Lines: 31 Well, maybe the port of libg++ wasn't as straight forward as I remembered it to be... I've had quite a few requests from NeXT users for the changes I made, so I'm posting this to comp.sys.next. Here are the changes I made to g++-include/String.h, so that it would compile. I hope these are correct. This is a diff; the originals are given first and the modifications are given second... 413c413 < inline StrTmp::StrTmp(StrRep* r) : rep(r) {} --- > inline StrTmp::StrTmp(StrRep* r) /* : rep(r)*/ {rep = r; } 415c415 < inline StrTmp::StrTmp(String& x) :rep(x.rep) { x.rep = &_nilStrRep; } --- > inline StrTmp::StrTmp(String& x) /* :rep(x.rep)*/ { rep = x.rep; x.rep = &_nilStrRep; } 417c417 < inline StrTmp::StrTmp(StrTmp& x) :rep(x.rep) { x.rep = &_nilStrRep; } --- > inline StrTmp::StrTmp(StrTmp& x) /*:rep(x.rep)*/ { rep = x.rep; x.rep = &_nilStrRep; } That's it: just three lines. I guess there were problems with the constructor syntax. I just changed it to explicitly initialize the 'rep' member, rather than use C++'s spiffy implicit initialization syntax. Hope this helps! -- Bill burdick@mentor.cc.purdue.edu