Skip to content

Class templates in Clause 33 are not indented #1516

Closed

Description

@jwakely

For example:

namespace std {
  template <class R>
  class future {

This applies to all the lock types, promise, future and packaged_task. I'll fix it after motions-2017-03-lwg-17 is merged in, because that adds a new lock type (which is not indented, for local consistency).

Activity

  1. jwakely commented on Mar 5, 2017

    @jwakely
    MemberAuthor

    Instead of indenting the entire class bodies by an additional two spaces we could take the approach used by reference_wrapper

    namespace std {
      template <class R> class future {
    
  2. tkoeppe commented on Mar 6, 2017

    @tkoeppe
    Contributor

    @jwakely: I'm not sure. That doesn't generallze well, and we can't do that for every class template. So perhaps we shouldn't do it for any. There's no problem with indenting that body by another two spaces.

  3. jensmaurer commented on Feb 15, 2018

    @jensmaurer
    Member

    Uh, it's nowhere indented, it seems: [ios.overview], [vector.overview]. Do you have an example of your desired indentation?

  4. added
    decision-requiredA decision of the editorial group (or the Project Editor) is required.
    on Feb 15, 2018
  5. tkoeppe commented on Feb 15, 2018

    @tkoeppe
    Contributor

    @jensmaurer: I thought we had already come to a decision on this in a different issue somewhere; check the wiki? [re.traits] would be an example of the style I believe I was referring to, although I think we ultimately decided against that and in favour of the style given in the OP here (in case where we do break the line).

  6. jensmaurer commented on Feb 16, 2018

    @jensmaurer
    Member

    Follow-on discussions in #1576, partly overridden by #1754.

  7. removed
    decision-requiredA decision of the editorial group (or the Project Editor) is required.
    on Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions