提交 991b989d 编写于 作者: M Matt Pharr

Fix silly declaration of Future::Get()

上级 5be88c03
......@@ -294,8 +294,7 @@ public:
Future(std::future<T> &&f) : fut(std::move(f)) {}
Future &operator=(std::future<T> &&f) { fut = std::move(f); return *this; }
template <typename R = typename std::enable_if<!std::is_void_v<T>, T>>
R &Get() {
T Get() {
Wait();
return fut.get();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册