mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-06 17:25:24 +08:00
qt 6.6.0 clean
This commit is contained in:
@ -1,6 +1,28 @@
|
||||
// Copyright (C) 2022 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#include <QPoint>
|
||||
#ifdef QVARIANT_H
|
||||
# error "This test requires qpoint.h to not include qvariant.h"
|
||||
#endif
|
||||
|
||||
// don't assume <type_traits>
|
||||
template <typename T, typename U>
|
||||
constexpr inline bool my_is_same_v = false;
|
||||
template <typename T>
|
||||
constexpr inline bool my_is_same_v<T, T> = true;
|
||||
|
||||
#define CHECK(cvref) \
|
||||
static_assert(my_is_same_v<decltype(get<0>(std::declval<QPoint cvref >())), int cvref >); \
|
||||
static_assert(my_is_same_v<decltype(get<1>(std::declval<QPoint cvref >())), int cvref >)
|
||||
|
||||
CHECK(&);
|
||||
CHECK(const &);
|
||||
CHECK(&&);
|
||||
CHECK(const &&);
|
||||
|
||||
#undef CHECK
|
||||
|
||||
#include <QTest>
|
||||
#include <QBuffer>
|
||||
|
||||
|
Reference in New Issue
Block a user