flatten 20260225
This commit is contained in:
23
tjp/core/future/boost/Future.h
Executable file
23
tjp/core/future/boost/Future.h
Executable file
@@ -0,0 +1,23 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
|
||||
#pragma once
|
||||
|
||||
#define BOOST_THREAD_PROVIDES_FUTURE
|
||||
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/thread/future.hpp>
|
||||
#include <functional>
|
||||
|
||||
namespace tjp {
|
||||
namespace core {
|
||||
|
||||
template<typename T>
|
||||
using Future = boost::future<T>;
|
||||
|
||||
template<typename T>
|
||||
using Promise = boost::promise<T>;
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user