Opened 10 years ago
Closed 10 years ago
#7281 closed Feature Requests (fixed)
C++11 compliance: Add ArgTypes to packaged_task template
| Reported by: | viboes | Owned by: | viboes |
|---|---|---|---|
| Milestone: | Boost 1.53.0 | Component: | thread |
| Version: | Boost 1.51.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
The following should be taken in account
template<class R, class... ArgTypes>
class packaged_task<R(ArgTypes...)> {
public:
// execution
void operator()(ArgTypes... );
void make_ready_at_thread_exit(ArgTypes...);
Change History (5)
comment:1 by , 10 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 10 years ago
comment:4 by , 10 years ago
| Milestone: | → Boost 1.53.0 |
|---|
comment:5 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Committed revision [81667].
Note:
See TracTickets
for help on using tickets.

Unfortunately this breaks the current interface. I will add it for version 4. If variadic templates are not available only the signature R() will be provided
template<class R> class packaged_task<R()> { public: void operator()();