[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: passing POD by value with const qualifiers. Silly or not?
From:       "Stefan Teleman" <stefan.teleman () gmail ! com>
Date:       2008-02-20 18:34:37
Message-ID: 1ccb59a20802201034k2a1831eawcf3537514d885c0d () mail ! gmail ! com
[Download RAW message or body]

On Feb 20, 2008 2:25 AM, Andre Wöbbeking <Woebbeking@kde.org> wrote:

> It makes sense in the implementation but not in the API. As compromise we
> could remove the const in the header files but leave them in the source files
> (that is allowed for PODs).

In this case, strictly conforming compilers will generate an undefined
symbol at link time because of argument constness mismatch between the
declaration and the implementation. It's neither BC nor BIC, it just
won't link.

--Stefan

-- 
Stefan Teleman
KDE e.V.
stefan.teleman@gmail.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic