[Development] Proposal: adding Q_DECL_NOEXCEPT to many methods

marius.storm-olsen at nokia.com marius.storm-olsen at nokia.com
Fri Aug 3 15:42:49 CEST 2012


On 03/08/2012 07:49, ext Thiago Macieira wrote:
> On sexta-feira, 3 de agosto de 2012 09.58.24, Konrad Rosenbaum
> wrote:
>
> The problem with QDateTime is that the operator== also does some
> calculations. It compares as equal two QDateTime objects with
> different times and timezones, provided that they are the same
> universal time.
>
> And operator== can't change incompatibly.

Does this mean that we should have an
     bool QDateTime::isIdentical(const QDateTime &dt)
function too (effectively an operator===), allowing you to easily check 
if two dates refer to the same time in the same TZ?

-- 
.marius


More information about the Development mailing list