diff options
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/itemmodels/qrangemodel_impl.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/corelib/itemmodels/qrangemodel_impl.h b/src/corelib/itemmodels/qrangemodel_impl.h index d94a5944614..9e5a5e173f2 100644 --- a/src/corelib/itemmodels/qrangemodel_impl.h +++ b/src/corelib/itemmodels/qrangemodel_impl.h @@ -67,7 +67,12 @@ namespace QRangeModelDetails // TODO: shouldn't we check is_smart_ptr && !is_copy_constructible && !is_copy_assignable // to support users-specific ptrs? template <typename T> - using is_any_unique_ptr = is_any_of<T, std::unique_ptr, QScopedPointer>; + using is_any_unique_ptr = is_any_of<T, +#ifndef QT_NO_SCOPED_POINTER + QScopedPointer, +#endif + std::unique_ptr + >; template <typename T> using is_any_shared_ptr = is_any_of<T, std::shared_ptr, QSharedPointer, |