Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[class] Returns for constructors and destructors should not have operands #3647

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion 5 source/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@
\indextext{restriction!constructor}%
A
\tcode{return}
statement in the body of a constructor shall not specify a return value.
statement in the body of a constructor shall have no operand.
\indextext{constructor!address of}%
The address of a constructor shall not be taken.

Expand Down Expand Up @@ -2162,6 +2162,9 @@
\pnum
\indextext{restriction!destructor}%
The address of a destructor shall not be taken.
A \tcode{return}
statement in the body of a destructor
shall have no operand.
\indextext{\idxcode{const}!destructor and}%
\indextext{\idxcode{volatile}!destructor and}%
A destructor can be invoked for a
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.