Naios / continuable

C++14 asynchronous allocation aware futures (supporting then, exception handling, coroutines and connections)
https://naios.github.io/continuable/
MIT License
815 stars 44 forks source link

"There is no way to call the given object with these arguments" #56

Closed Spongman closed 1 year ago

Spongman commented 1 year ago

@Naios

It looks to me like the documentation is suggesting that this is possible:

   std::vector<cti::continuable<int>> futures;

   cti::when_all(std::move(futures))
      .then([](std::vector<int> &&futureResults) {})
      .apply(cti::transforms::wait());

but i get this:

continuable/detail/utility/util.hpp:157:25: error: static assertion failed: There is no way to call the given object with these arguments!
  157 |         sizeof...(Args) > Keep,

Commit Hash

4.1.0 6bffb44d2bcca4989945e4d76ce8d35cf8cdcebd

clang 15 on godbolt gives the same error.

Spongman commented 1 year ago

sorry, just a typo, ignore this...