[
https://issues.apache.org/jira/browse/MESOS-4221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15107699#comment-15107699
]
Michael Park commented on MESOS-4221:
-------------------------------------
{noformat}
commit b15161eea964c196276b51ef24763fee2f409d57
Author: Michael Park <[email protected]>
Date: Tue Dec 15 02:54:56 2015 +0000
Invoked `_Deferred`'s `operator F()` explicitly.
Review: https://reviews.apache.org/r/41459
{noformat}
> Invoke _Deferred's implicit conversion operator explicitly.
> -----------------------------------------------------------
>
> Key: MESOS-4221
> URL: https://issues.apache.org/jira/browse/MESOS-4221
> Project: Mesos
> Issue Type: Task
> Components: libprocess
> Reporter: Michael Park
> Assignee: Michael Park
> Labels: mesosphere
>
> As of VS 2015 Update 1, MSVC implements C++11 semantics for
> {{std::function}}'s {{Callable}} constructor which does not SFINAE. In the
> short term, we call the implicit conversion operator from {{_Deferred}} to
> {{std::function}} explicitly.
> Going forward, I propose to make {{_Deferred}} callable which will bring us
> to a state where {{process::defer}} is similar to {{std::bind}} in that the
> objects returned from them are "implementation-defined" (i.e., {{_Deferred}}
> and something like {{_Bind}}), and that they were both callable. {{Deferred}}
> and {{std::function}} are similar in that they perform type-erasure.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)