From 7fcb126fcb7cff945936a7f5e051b07ce0de8a7f Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 12 Jun 2024 21:41:29 +0200 Subject: Core/Database: Remove future/promise typedefs from a public header (these are internal to database project) --- src/server/database/Database/Transaction.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server/database/Database/Transaction.h') diff --git a/src/server/database/Database/Transaction.h b/src/server/database/Database/Transaction.h index f4dcb9fae34..c60b74b58b8 100644 --- a/src/server/database/Database/Transaction.h +++ b/src/server/database/Database/Transaction.h @@ -22,6 +22,7 @@ #include "DatabaseEnvFwd.h" #include "StringFormat.h" #include +#include #include #include #include @@ -100,7 +101,7 @@ private: class TC_DATABASE_API TransactionCallback { public: - TransactionCallback(TransactionFuture&& future) : m_future(std::move(future)) { } + TransactionCallback(std::future&& future) : m_future(std::move(future)) { } TransactionCallback(TransactionCallback&&) = default; TransactionCallback& operator=(TransactionCallback&&) = default; @@ -112,7 +113,7 @@ public: bool InvokeIfReady(); - TransactionFuture m_future; + std::future m_future; std::function m_callback; }; -- cgit v1.2.3