🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Arto V. Viitanen Thu, 20 Aug 1992 07:12
Re: VAR - a C++ string class library
#202
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads