Changeset 0f43be5 in mainline for uspace/lib/cpp/include/__bits/thread/future.hpp
- Timestamp:
- 2019-07-01T13:19:05Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0d299c93
- Parents:
- 396b234
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/thread/future.hpp
r396b234 r0f43be5 192 192 193 193 template<class R> 194 class future<R&>: public aux::future_base<R &>194 class future<R&>: public aux::future_base<R*> 195 195 { 196 196 public: 197 197 future() noexcept 198 : aux::future_base<R &>{}198 : aux::future_base<R*>{} 199 199 { /* DUMMY BODY */ } 200 200 … … 202 202 203 203 future(future&& rhs) noexcept 204 : aux::future_base<R &>{move(rhs.state_)}205 { /* DUMMY BODY */ } 206 207 future(aux::shared_state<R &>* state)208 : aux::future_base<R &>{state}204 : aux::future_base<R*>{move(rhs.state_)} 205 { /* DUMMY BODY */ } 206 207 future(aux::shared_state<R*>* state) 208 : aux::future_base<R*>{state} 209 209 { /* DUMMY BODY */ } 210 210 … … 227 227 this->state_->throw_stored_exception(); 228 228 229 return this->state_->get(); 229 assert(this->state_->get()); 230 return *this->state_->get(); 230 231 } 231 232 };
Note:
See TracChangeset
for help on using the changeset viewer.