diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-09-05 16:59:46 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-06 19:58:51 +0200 |
commit | ba43b70132b661d1b8d99af5258fca3567fe776c (patch) | |
tree | de990807d28d805552efe50ca8924d9add90a264 /dist | |
parent | 018c4850c9d8c6a806d40a6a0da14855f071d4fe (diff) |
Compile in strict-iterator mode under MSVC
MSVC doesn't like operator->() returning a pointer to
non-aggregate. So we must make sure that the expanded code does not
try to call it by doing:
abegin->~T();
Instead, we make an implicit call to operator T*() with that
static_cast<T* >. If abegin is a non-strict iterator, it's already
a T*, so the static_cast is a no-op.
qvector.h(645) : error C2839: invalid return type 'int *' for overloaded 'operator ->'
Change-Id: I06f983bab7677cb60ef3913cdce349e26896bfb6
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions