MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / throwing_copy

Class throwing_copy

test/exec/async_scope/test_spawn_future.cpp:160–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 exec::static_thread_pool pool{2};
159
160 struct throwing_copy
161 {
162 throwing_copy() = default;
163
164 throwing_copy(throwing_copy const &)
165 {
166 throw std::logic_error("cannot copy");
167 }
168 };
169
170 ex::sender auto snd = scope.spawn_future(
171 ex::starts_on(pool.get_scheduler(),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected