[Dwarf-Discuss] Inconsistency of C++ member function qualifiers

2021-10-05 Thread David Blaikie via Dwarf-Discuss
C++ member functions can be qualified in a number of ways - classic CV (const and volatile) qualifiers, and since C++11, lvalue (&) and rvalue (&&) reference qualifiers. Details here: https://en.cppreference.com/w/cpp/language/member_functions A note on 5.10, page 127 says: "C++ const-volatile qu

Re: [Dwarf-Discuss] Inconsistency of C++ member function qualifiers

2021-10-05 Thread Paul Robinson via Dwarf-Discuss
According to https://en.cppreference.com/w/cpp/language/function the cv-qualifier is allowed only on non-static member functions, which are exactly the ones that have an implicit this-pointer parameter. cv - const/volatile qualification, only allowed in non-static member function declarations Ar

Re: [Dwarf-Discuss] Inconsistency of C++ member function qualifiers

2021-10-05 Thread David Blaikie via Dwarf-Discuss
On Tue, Oct 5, 2021 at 1:13 PM wrote: > According to https://en.cppreference.com/w/cpp/language/function the > cv-qualifier is allowed only on non-static member functions, which are > exactly the ones that have an implicit this-pointer parameter. > > *cv* > > - > > const/volatile qualification, o