delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/21/18:09:48

Date: Mon, 21 Feb 2000 07:46:32 -0800
Message-Id: <200002211546.HAA16127@www2.xoommail.com>
X-Loop: xoommail.com
From: Brian Ronk <rithe AT xoommail DOT com>
Subject: Qualifiers
To: djgpp AT delorie DOT com
Reply-To: djgpp AT delorie DOT com

Ok, now that my timing problam is fixed, I've got 
a new one for you.  I can't figure out the error 
for the life of me.  I have an Array class, so I 
can get the size very easily, etc.  I used it 
inside another class, and wanted to use it in an 
ostream, so I could save the info.  My line is 
this:
  int size=map.Links.Size();
The error is this:
  passing 'const Array<unsigned int>' as 'this' 
argument for 'int Array<unsigned int>::Size()' 
discards qualifiers

Any ideas what I need to do to fix this?  Thanks 
again.

Brian Ronk

______________________________________________________
Get your free web-based email at http://www.xoom.com
Birthday? Anniversary? Send FREE animated greeting
cards for any occasion at http://greetings.xoom.com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019