[
https://issues.apache.org/jira/browse/MESOS-4221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Hindman updated MESOS-4221:
------------------------------------
Sprint: Mesosphere Sprint 25, Mesosphere Sprint 26 (was: Mesosphere Sprint
25)
> 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)