Skip to content

P3533R2 constexpr virtual inheritance #7990

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
8 changes: 1 addition & 7 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -916,14 +916,8 @@
\indextext{specifier!\idxcode{constexpr}!function}%
\indextext{constexpr function}%
A function is \defn{constexpr-suitable} if
\begin{itemize}
\item
it is not a coroutine\iref{dcl.fct.def.coroutine}, and
it is not a coroutine\iref{dcl.fct.def.coroutine}.

\item
if the function is a constructor or destructor,
its class does not have any virtual base classes.
\end{itemize}
Except for instantiated constexpr functions,
non-templated constexpr functions shall be constexpr-suitable.

Expand Down
1 change: 1 addition & 0 deletions source/preprocessor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2301,6 +2301,7 @@
\defnxname{cpp_constexpr_dynamic_alloc} & \tcode{201907L} \\ \rowsep
\defnxname{cpp_constexpr_exceptions} & \tcode{202411L} \\ \rowsep
\defnxname{cpp_constexpr_in_decltype} & \tcode{201711L} \\ \rowsep
\defnxname{cpp_constexpr_virtual_inheritance} & \tcode{202506L} \\ \rowsep
\defnxname{cpp_consteval} & \tcode{202211L} \\ \rowsep
\defnxname{cpp_constinit} & \tcode{201907L} \\ \rowsep
\defnxname{cpp_contracts} & \tcode{202502L} \\ \rowsep
Expand Down