🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #202

Re: VAR - a C++ string class library

#202
From: Arto V. Viitanen
Date: Thu, 20 Aug 1992 07:12
20 lines
1028 bytes
I tried to compile Lee Hounshell's VAR library on GNU G++ (gcc version
2.2.2). It said there is error on var.C, in method

var & var::operator ++ (void)           // increment (pre-index only)
{
    *this += 1;
    return *this;
}

var.C: In method `class var& var::operator ++ ()':
var.C:523: cannot convert to a reference type

Funny thing is, operator -- compiles without problem. When I changed the
addition to subtraction (*this -= -1), the library compiled ok.


--
Arto V. Viitanen				               email: av@uta.fi
University Of Tampere,				   	           av@cs.uta.fi
Finland
Technical Details
Message-ID: <AV.92Aug20101205@kielo.uta.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!uta!kielo!av

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!uta!kielo!av
From: av@kielo.uta.fi (Arto V. Viitanen)
Newsgroups: gnu.g++.help,alt.sources.d
Subject: Re: VAR - a C++ string class library
Message-ID: <AV.92Aug20101205@kielo.uta.fi>
Date: 20 Aug 92 07:12:05 GMT
Sender: news@uta.fi
Reply-To: av@uta.fi (Arto V. Viitanen)
Distribution: gnu
Organization: University of Tampere, Finland
Lines: 20
Nntp-Posting-Host: kielo