File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1988,7 +1988,8 @@ class RefParser
19881988 // https://en.cppreference.com/w/cpp/language/function
19891989 char const * start = ptr_;
19901990
1991- if (auto * destMF = dynamic_cast <ParsedMemberFunctionSuffix*>(&dest))
1991+ auto * destMF = dynamic_cast <ParsedMemberFunctionSuffix*>(&dest);
1992+ if (destMF && !destMF->IsExplicitObjectMemberFunction )
19921993 {
19931994 // Parse cv:
19941995 // const/volatile qualification, only allowed in non-static member
@@ -2004,7 +2005,7 @@ class RefParser
20042005 // Parse ref:
20052006 // ref-qualification, only allowed in non-static member function
20062007 // declarations
2007- if (auto * destMF = dynamic_cast <ParsedMemberFunctionSuffix*>(&dest) )
2008+ if (destMF && !destMF-> IsExplicitObjectMemberFunction )
20082009 {
20092010 skipWhitespace ();
20102011 if (parseLiteral (" &" ))
You can’t perform that action at this time.
0 commit comments