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

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

Closed
zygoloid opened this issue Aug 22, 2014 · 0 comments
Closed

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

zygoloid opened this issue Aug 22, 2014 · 0 comments

Comments

@zygoloid
Copy link
Member

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;
};
zygoloid added a commit that referenced this issue Aug 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant