passing POD by value with const qualifiers. Silly or not?
Stefan Teleman
stefan.teleman at gmail.com
Wed Feb 20 18:34:37 GMT 2008
On Feb 20, 2008 2:25 AM, Andre Wöbbeking <Woebbeking at 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 at gmail.com
More information about the kde-core-devel
mailing list