-
Notifications
You must be signed in to change notification settings - Fork 766
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
Inconsistent spacing between "template" and "<" #53
Comments
I intend to use |
I +1 for using |
My +100 template is so "last millenium" :-)
|
Or were you only talking about the space between template and < ??? |
The thread itself is talking about the spacing. I seldom see |
Editorial meeting consensus: use |
Can we confirm the preference is: template<class T, template class<class U>> (space and keyword choice) I will perform a sweep of all library clauses after the Oulu papers land, and apply the preferred rule. My preference would be template <typename T, template typename<typename U>> so it is a good job that I don't get to pick ;) |
@AlisdairM: My understanding is that "space after comma" and "closing It's probably best to wait until all the motions have been merged unless you're happy to rebase. |
I want to do whatever is required to close the issue - the legwork seems easy, but repetitive :) I would prefer guidance to resolve one way or the other on the 'template <' vs. 'template<', but if the conclusion is that both are acceptable, I will look for local consistency in each clause, and leave it at that. |
I don't like the idea to choose a style merely according to the amount of instances, unless there are no other reasons. Personally I prefer BTW, I've ever searched for some tools to format code in this style, but failed. Notably, Note I still prefer
|
I have a weak preference for |
Use 'template<class T>'. Also remove space between two closing template brackets in [lib]. Fixes cplusplus#53.
Use 'template<class T>'. Also remove space between two closing template brackets in [lib]. Fixes cplusplus#53.
Editorial meeting consensus: Don't apply for C++17. |
Use 'template<class T>'. Also remove space between two closing template brackets in [lib]. Fixes cplusplus#53.
Use 'template<class T>'. Also remove space between two closing template brackets in [lib]. Fixes cplusplus#53.
I'm reopening this because I ran into this while reviewing PR #2719, applied from P1458R1. I would like to see a consistent form for this, with guidance added to our Specification-Style-Guidelines. |
FWIW, we use |
@burblebee: Thanks for finding this. The guidance is clear (see above); I have finally updated the wiki to reflect this. Please apply the intended (no-space) formatting to this and all future wording changes. |
From an email to cxxeditor@:
or
The standard as-is has 1494 instances of 'template<' that I can find trivially, and 2053 instances of 'template <'.
The text was updated successfully, but these errors were encountered: