You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cpp/constexpr-cpp.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ The following rules apply to constexpr functions:
61
61
62
62
- A **`constexpr`** function can be recursive.
63
63
64
-
- It can't be [virtual](../cpp/virtual-cpp.md). A constructor can't be defined as **`constexpr`** when the enclosing class has any virtual base classes.
64
+
- Before C++20 it couldn't be [virtual](../cpp/virtual-cpp.md). A constructor couldn't be defined as **`constexpr`** when the enclosing class had any virtual base classes. Visual C++ supports **`constexpr`** virtual functions since Visual Studio 2019 16.11.
65
65
66
66
- The body can be defined as `= default` or `= delete`.
0 commit comments