[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#279909: missing 'const' in Plotter::parampl declaration?



Hi

I was looking at this bug (which you reported on 05 Nove 2004,
http://bugs.debian.org/279909) and think it is actually a problem of
the example.

Not exactly being into C++ these days but I suspect the behaviour
could have been changed in the compilers.  Anyhow, in the example
change the start of main() as such:

int
main ()
{
  char* myletter = "letter"
  Plotter::parmpl ("PAGESIZE", myletter);
...

Now "letter" is not a const (unless you'd write 'const char*') so the
compiler does not complain about this.


If you don't mind I'll close this bug some time soon unless you
disagree.


Floris

-- 
Debian GNU/Linux -- The power of freedom
www.debian.org | www.gnu.org | www.kernel.org



Reply to: