Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] Standardise use of type aliases and rvalue references in for loops #32

Merged
merged 1 commit into from
Apr 3, 2018
Merged

[ML] Standardise use of type aliases and rvalue references in for loops #32

merged 1 commit into from
Apr 3, 2018

Conversation

tveasey
Copy link
Contributor

@tveasey tveasey commented Apr 3, 2018

This is one of a couple of changes related to C++11 language features. With the big change related to automating formatting upcoming, I plan to make these now.

We currently use a mixture of type aliases and typedefs in our code. Since type aliasing provides a strict superset of the functionality of typedefs, but is otherwise essentially equivalent, it seems sensible to standardise on only using type aliasing throughout. This PR makes that change.

It also adopts the convention of not using rvalue references in for loops, except for template code, on grounds of readability.

Copy link
Contributor

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@edsavage edsavage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM also

@tveasey tveasey merged commit e54b204 into elastic:master Apr 3, 2018
tveasey added a commit that referenced this pull request Apr 4, 2018
We currently use a mixture of type aliases and typedefs in our code. Since type aliasing 
provides a strict superset of the functionality of typedefs, but is otherwise essentially 
equivalent, it seems sensible to standardise on only using type aliasing throughout. This also 
adopts the convention of not using rvalue references in for loops, except for template code, on 
grounds of readability.
droberts195 pushed a commit that referenced this pull request Apr 23, 2018
We currently use a mixture of type aliases and typedefs in our code. Since type aliasing 
provides a strict superset of the functionality of typedefs, but is otherwise essentially 
equivalent, it seems sensible to standardise on only using type aliasing throughout. This also 
adopts the convention of not using rvalue references in for loops, except for template code, on 
grounds of readability.
droberts195 pushed a commit that referenced this pull request Apr 23, 2018
We currently use a mixture of type aliases and typedefs in our code. Since type aliasing 
provides a strict superset of the functionality of typedefs, but is otherwise essentially 
equivalent, it seems sensible to standardise on only using type aliasing throughout. This also 
adopts the convention of not using rvalue references in for loops, except for template code, on 
grounds of readability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants