Work around MSVC2015's alignof()
commitcbf3fc7835e05560bdf1fc00c434026f634b0fa6
authorJan Kundrát <jkt@kde.org>
Mon, 3 Oct 2016 19:31:04 +0000 (3 21:31 +0200)
committerJan Kundrát <jkt@kde.org>
Mon, 3 Oct 2016 19:31:04 +0000 (3 21:31 +0200)
tree766a6a20e941c6f094a2749bce2d6ef34d38bcb6
parent383467a94f94c039fabd6421d8ebbb81391da1b1
Work around MSVC2015's alignof()

It seems [1] that MSVC doesn't support calling alignof() on abstract
classes, but one has to make a detour through a reference. Documentation
says that the alignment of a reference type is the same as that of the
referenced type, so we should be safe.

Thanks to Sérgio Martins for reporting this.

[1] https://www.reddit.com/r/cpp_questions/comments/45v1oh/alignment_of_abstract_class/

Change-Id: Ia4d9b4f845bb6f65a425f3d422f362f45b9e2214
src/Imap/Model/MailboxTree.cpp