This is an archive of the discontinued LLVM Phabricator instance.

Add support for "fancy" pointers to promise and packaged_task.
ClosedPublic

Authored by EricWF on Aug 11 2014, 10:11 PM.

Details

Summary

This patch is very closely related to D4859. Please see http://reviews.llvm.org/D4859 for more information.

This patch adds support for "fancy" pointers and allocators to promise and packaged_task. The changes made to support this are exactly the same as in D4859.

Diff Detail

Event Timeline

EricWF updated this revision to Diff 12384.Aug 11 2014, 10:11 PM
EricWF retitled this revision from to Add support for "fancy" pointers to promise and packaged_task..
EricWF updated this object.
EricWF edited the test plan for this revision. (Show Details)
EricWF added reviewers: mclow.lists, danalbert.
EricWF set the repository for this revision to rL LLVM.
EricWF added a subscriber: Unknown Object (MLST).
EricWF updated this revision to Diff 12540.Aug 14 2014, 9:48 PM

Implement suggestions from bug report. Don't depend on allocator providing a pointer typedef.

mclow.lists accepted this revision.Oct 22 2014, 10:03 PM
mclow.lists edited edge metadata.

LGTM

include/future
788

This repetitive code bothers me; both here and in D4859.
I don't see an obvious way to package it up, though.

(Yes, I know it's just types, not actual code, but if it's in multiple places in the source, there's a chance that it's wrong in one or more of them)

This revision is now accepted and ready to land.Oct 22 2014, 10:03 PM
EricWF closed this revision.Oct 22 2014, 11:35 PM