passing POD by value with const qualifiers. Silly or not?

Thiago Macieira thiago at
Wed Feb 20 08:14:08 GMT 2008

Andre Wöbbeking wrote:
>AFAIK it's OK to have parameters without const in the declaration and
> with const in the implementation. Not sure about return values.

That's what I am telling you isn't OK. Some compilers may choke on that.

  Thiago Macieira  -  thiago (AT) - thiago (AT)
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the kde-core-devel mailing list