Skip to content

Instantly share code, notes, and snippets.

@AntonBikineev
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntonBikineev/cfc65ac007721215cd2d to your computer and use it in GitHub Desktop.
Save AntonBikineev/cfc65ac007721215cd2d to your computer and use it in GitHub Desktop.
template <class T>
auto futurized(const T& t)
{
auto fut = hpx::async(...);
return fut.then(
[&t](auto){...});
}
int main()
{
auto fut = futurized(int{}); //ub?
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment