mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Database: Remove future/promise typedefs from a public header (these are internal to database project)
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "DatabaseEnvFwd.h"
|
||||
#include "StringFormat.h"
|
||||
#include <functional>
|
||||
#include <future>
|
||||
#include <mutex>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
@@ -100,7 +101,7 @@ private:
|
||||
class TC_DATABASE_API TransactionCallback
|
||||
{
|
||||
public:
|
||||
TransactionCallback(TransactionFuture&& future) : m_future(std::move(future)) { }
|
||||
TransactionCallback(std::future<bool>&& 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<bool> m_future;
|
||||
std::function<void(bool)> m_callback;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user