[PATCH] KSharedPtr operator== problem
Adriaan de Groot
groot at kde.org
Sat Oct 4 09:08:14 BST 2008
On Saturday 04 October 2008 09:29:12 Thiago Macieira wrote:
> I asked our C++ standard experts in-house about the subject. Roberto
> couldn't come up with a definitive answer: we can't decide whether the
> standard allows it or not.
OK. At some point "does it compile with the tools we have?" trumps "does the
standard allow it?" anyway. There must be some subtlety I'm missing there.
What would help in this specific case is a complete test program (from Alex)
(with no dependency on an installed KDE, if possible) that exercises this
stuff so we can just throw it at the non-gcc compilers and see what happens.
> In any case, the solution is very simple anyways, invert the comparison:
Elegance trumps dealing-with-possibly-supported-template-features every time.
More information about the kde-core-devel