boostorg / boostorg/thread

make_ready_future<void> bug

Open
#341 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
214
Forks
171
PR merge metrics
No merged PRs in 30d

Description

Used boost version 1.76.0

next code from future.hpp, line 4388
promise\ have no emplace method
```
// variadic overload
#if ! defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
template
BOOST_THREAD_FUTURE make_ready_future(Args&&... args)
{
promise p;
p.emplace(forward(args)...);
return p.get_future();

}
#endif
```

header contains correct function for promise\, but compiler always select variadic-templated method instead of normal

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.