forked from qt-creator/qt-creator
Sqlite: Improve compile error message
Change-Id: Ifbe778b32d066ed2b86405a4cbfd328e7abcc800 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -210,8 +210,10 @@ public:
|
||||
}
|
||||
|
||||
template<typename ResultType, typename... QueryTypes>
|
||||
std::enable_if_t<!std::is_function_v<ResultType>, ResultType> value(const QueryTypes &...queryValues)
|
||||
auto value(const QueryTypes &...queryValues)
|
||||
{
|
||||
static_assert(!std::is_fundamental_v<ResultType>,
|
||||
"Use optionalValue(...) instead of value(...) for fundamental types!");
|
||||
Resetter resetter{this};
|
||||
ResultType resultValue{};
|
||||
|
||||
|
Reference in New Issue
Block a user