* @param message Exception message
*/
xbt_ex(simgrid::xbt::ThrowPoint throwpoint, std::string message) : simgrid::Exception(throwpoint, message) {}
+
+ xbt_ex(const xbt_ex&) = default;
~xbt_ex(); // DO NOT define it here -- see ex.cpp for a rationale
simgrid::xbt::fulfill_promise(promise, [&] { return continuation(std::move(future)); });
},
std::move(promise), state, std::move(continuation)));
- return std::move(future);
+ return future;
}
template <class F>
T value = std::move(value_);
value_.~T();
status_ = ResultStatus::invalid;
- return std::move(value);
+ return value;
}
case ResultStatus::exception: {
std::exception_ptr exception = std::move(exception_);
public:
UnwindContext() = default;
+ UnwindContext(const UnwindContext&) = default;
~UnwindContext() { clear(); }
void initialize(simgrid::mc::RemoteClient* process, unw_context_t* c);
void clear();