Skip to content

Check removal of rule from [dcl.constexpr]p8 is intentional #370

Closed
@zygoloid

Description

@zygoloid

DIS 14882:2014 NB comment JP 06:

By N3652, the statement "The class of which .... a literal type (3.9)" remains, but it is removed in DIS. Please check whether the removal is intended or not.

Proposed change:

If it is intended, we think that the following part of the example should be removed because it is not related to this clause in DIS.

class debug_flag {
public:
  explicit debug_flag(bool);
  constexpr bool is_on() const;                // error: debug_flag not
                                       // literal type
private:
  bool flag;
};

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