File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -2844,15 +2844,17 @@ struct VirtualTraits {
28442844
28452845 /* *
28462846 Casts a virtual argument.
2847- `cast` is responsible for passing virtual arguments from method to
2847+
2848+ `cast` is responsible for passing virtual arguments from method to
28482849 overrider. In general, this requires some form of adjustment, because a
28492850 virtual parameter in the overrider may have a different type than the
28502851 corresponding parameter in the method. Typically, the adjustment
28512852 consists in a cast, performed via `static_cast`, `dynamic_cast`, or
28522853 other means, depending on the type of the argument and the rtti policy
28532854 of the method. `cast` may return the adjusted argument by reference or
28542855 as a temporary value.
2855- <table>
2856+
2857+ <table>
28562858 <tr>
28572859 <th>Method Parameter Type</th>
28582860 <th>Overrider Parameter Type</th>
@@ -2864,11 +2866,6 @@ struct VirtualTraits {
28642866 <td>U&</td>
28652867 </tr>
28662868 </table>
2867-
2868- @tparam T The type of the virtual parameter in the method.
2869- @tparam U The type of the virtual parameter in the overrider.
2870- @param arg The argument passed to the method call.
2871- @return A value that can be passed as a U.
28722869 */
28732870 template <typename U>
28742871 static auto cast (T arg) -> detail::unspecified;
You can’t perform that action at this time.
0 commit comments