[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:43:31 PDT 2026
================
@@ -985,6 +985,9 @@ future<_Rp>::~future() {
template <class _Rp>
_Rp future<_Rp>::get() {
+ if (__state_ == nullptr) [[unlikely]] {
+ __throw_future_error(future_errc::no_state);
----------------
Ekkorus101 wrote:
applied
https://github.com/llvm/llvm-project/pull/179409
More information about the libcxx-commits
mailing list