Date: Thu, 11 Jul 2024 10:14:44 +0530
> Should it be written in the last quote that
No because implicit object parameter is not actually a part of parameter
type list.
On Thu, 11 Jul 2024, 01:35 Vladimir Grigoriev via Std-Discussion <
std-discussion_at_[hidden] wrote:
> There is some confusion about non-object-parameter-type-list.
>
> In the C++ Draft (n4950) in teh section 9.3.4.6 Functions there is written
> the following:
>
> 7 A function parameter declared with an
> explicit-object-parameter-declaration is an explicit object parameter. An
> explicit object parameter shall not be a function parameter pack (13.7.4).
> An explicit object member function is a non-static member function with an
> explicit object parameter. *An implicit object member function is a
> non-static member function without an explicit object parameter.*
>
> 8 The object parameter of a non-static member function is either the
> explicit object parameter or the implicit object parameter (12.2.2).
>
> 9 A non-object parameter is a function parameter that is not the explicit
> object parameter. *The non-object-parameter-type-list of a member
> function is the parameter-type-list of that function with the explicit
> object parameter, if any, omitted.*
>
> Should it be written in the last quote that «...The
> non-object-parameter-type-list of a member function is the
> parameter-type-list of that function *with an implicit object parameter*,
> if any, omitted.»?
>
> With best regards
> (Vlad from Moscow)
>
> You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or
> http://ru.stackoverflow.com
> --
> Std-Discussion mailing list
> Std-Discussion_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion
>
No because implicit object parameter is not actually a part of parameter
type list.
On Thu, 11 Jul 2024, 01:35 Vladimir Grigoriev via Std-Discussion <
std-discussion_at_[hidden] wrote:
> There is some confusion about non-object-parameter-type-list.
>
> In the C++ Draft (n4950) in teh section 9.3.4.6 Functions there is written
> the following:
>
> 7 A function parameter declared with an
> explicit-object-parameter-declaration is an explicit object parameter. An
> explicit object parameter shall not be a function parameter pack (13.7.4).
> An explicit object member function is a non-static member function with an
> explicit object parameter. *An implicit object member function is a
> non-static member function without an explicit object parameter.*
>
> 8 The object parameter of a non-static member function is either the
> explicit object parameter or the implicit object parameter (12.2.2).
>
> 9 A non-object parameter is a function parameter that is not the explicit
> object parameter. *The non-object-parameter-type-list of a member
> function is the parameter-type-list of that function with the explicit
> object parameter, if any, omitted.*
>
> Should it be written in the last quote that «...The
> non-object-parameter-type-list of a member function is the
> parameter-type-list of that function *with an implicit object parameter*,
> if any, omitted.»?
>
> With best regards
> (Vlad from Moscow)
>
> You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or
> http://ru.stackoverflow.com
> --
> Std-Discussion mailing list
> Std-Discussion_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion
>
Received on 2024-07-11 04:44:58