Opened 13 years ago

Closed 11 years ago

#3975 closed Patches (fixed)

Incorrect precondition for promise::set_wait_callback()

Reported by: Jonathan Wakely <jwakely.boost@…> Owned by: viboes
Milestone: Boost 1.49.0 Component: thread
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc: viboes

Description

The documented preconditions for promise::set_wait_callback() say:

"The expression f(t) where t is a lvalue of type boost::packaged_task shall be well-formed."

That should say boost::promise, not boost::packaged_task.

(btw wait callbacks are a very nice feature!)

Attachments (1)

future_ref.patch​ (644 bytes ) - added by viboes 12 years ago.

Download all attachments as: .zip

Change History (4)

by viboes, 12 years ago

Attachment: future_ref.patch​ added

comment:1 by viboes, 12 years ago

Type: Bugs → Patches

comment:2 by viboes, 11 years ago

Cc: viboes added
Milestone: Boost 1.43.0 → Boost 1.49.0
Owner: changed from Anthony Williams to viboes
Status: new → assigned

Committed in trunk revision 75790.

comment:3 by viboes, 11 years ago

Resolution: → fixed
Status: assigned → closed

Committed in release at #76291

Note: See TracTickets for help on using tickets.