[libcxx-commits] [libcxx] [libc++] Throw future_error in future.get() (PR #179409)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 24 02:44:24 PDT 2026


================
@@ -985,6 +985,9 @@ future<_Rp>::~future() {
 
 template <class _Rp>
 _Rp future<_Rp>::get() {
+  if (__state_ == nullptr) [[unlikely]] {
----------------
Ekkorus101 wrote:

make sense, removed. :)

https://github.com/llvm/llvm-project/pull/179409


More information about the libcxx-commits mailing list