[
https://issues.apache.org/jira/browse/MESOS-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14555135#comment-14555135
]
Joris Van Remoortere commented on MESOS-2762:
---------------------------------------------
[~joerg84] after discussing with [~mcypark], let's discuss possibly calling
this out more explicitly in the style guide, rather than just white-listing it.
The question is: do we want to require explicitly using the defaulted functions
for all the constructors, destructors, and assignment operators? This can be
really helpful as documentation, at the same time it's extra code.
Once we decide on a preferred / required pattern, then we can call out an
example in the style guide, and refer out to this JIRA as we do with other
features or rules.
> Explicitly-defaulted functions are not allowed by styleguide
> ------------------------------------------------------------
>
> Key: MESOS-2762
> URL: https://issues.apache.org/jira/browse/MESOS-2762
> Project: Mesos
> Issue Type: Task
> Reporter: Joerg Schad
> Assignee: Joris Van Remoortere
>
> As of right now the styleguide does not allow explicitly defaulted functions
> (being a c++ 11 feature).
> They enhance readability, are supported by all relevant compiler (GCC 4.4+
> and Clang 3.0+), and are introduced by some patches (e.g.
> https://reviews.apache.org/r/34277/).
> Therefore we should officially whitelist them in the styleguide.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)