diff --git a/platform/qt/src/sqlite3.cpp b/platform/qt/src/sqlite3.cpp index 367b51811..85de73e6f 100644 --- a/platform/qt/src/sqlite3.cpp +++ b/platform/qt/src/sqlite3.cpp @@ -189,10 +189,7 @@ Statement::operator bool() const { return impl.operator bool(); } -template void Statement::bind(int, int8_t); -template void Statement::bind(int, int32_t); template void Statement::bind(int, int64_t); -template void Statement::bind(int, uint8_t); template void Statement::bind(int offset, T value) { @@ -210,11 +207,26 @@ void Statement::bind(int offset, std::nullptr_t) { checkQueryError(impl->query); } +template <> +void Statement::bind(int offset, int32_t value) { + bind(offset, static_cast(value)); +} + template <> void Statement::bind(int offset, bool value) { bind(offset, static_cast(value)); } +template <> +void Statement::bind(int offset, int8_t value) { + bind(offset, static_cast(value)); +} + +template <> +void Statement::bind(int offset, uint8_t value) { + bind(offset, static_cast(value)); +} + template <> void Statement::bind(int offset, mbgl::Timestamp value) { bind(offset, std::chrono::system_clock::to_time_t(value));