GorNishanov / coroutines-ts

20 stars 2 forks source link

Adding construct_promise and destruct_promise #1

Closed hkaiser closed 6 years ago

hkaiser commented 9 years ago

While not directly related to standardization, here is an implementation for VS2015rc which adds the new functions: https://gist.github.com/hkaiser/e727204f2766055eee24

GorNishanov commented 9 years ago

Awesome!

Can you send me the snippet of how you define construct_promise and destruct_promise in the traits for hpx::future?

Gor

From: Hartmut Kaiser [mailto:notifications@github.com] Sent: Monday, May 4, 2015 2:04 PM To: GorNishanov/Docs Subject: Re: [Docs] Adding construct_promise and destruct_promise (#1)

While not directly related to standardization, here is an implementation for VS2015rc which adds the new functions: https://gist.github.com/hkaiser/e727204f2766055eee24

— Reply to this email directly or view it on GitHubhttps://github.com/GorNishanov/Docs/pull/1#issuecomment-98815153.

hkaiser commented 9 years ago

For posterity, here is the code you asked for:

It's all here: https://github.com/STEllAR-GROUP/hpx/blob/vs2015rc_await/hpx/lcos/local/promise.hpp#L761 The allocator is here: https://github.com/STEllAR-GROUP/hpx/blob/vs2015rc_await/hpx/lcos/local/promise.hpp#L557

brycelelbach commented 6 years ago

This can probably be closed.

GorNishanov commented 6 years ago

Ack