File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1988,7 +1988,8 @@ class RefParser
1988
1988
// https://en.cppreference.com/w/cpp/language/function
1989
1989
char const * start = ptr_;
1990
1990
1991
- if (auto * destMF = dynamic_cast <ParsedMemberFunctionSuffix*>(&dest))
1991
+ auto * destMF = dynamic_cast <ParsedMemberFunctionSuffix*>(&dest);
1992
+ if (destMF && !destMF->IsExplicitObjectMemberFunction )
1992
1993
{
1993
1994
// Parse cv:
1994
1995
// const/volatile qualification, only allowed in non-static member
@@ -2004,7 +2005,7 @@ class RefParser
2004
2005
// Parse ref:
2005
2006
// ref-qualification, only allowed in non-static member function
2006
2007
// declarations
2007
- if (auto * destMF = dynamic_cast <ParsedMemberFunctionSuffix*>(&dest) )
2008
+ if (destMF && !destMF-> IsExplicitObjectMemberFunction )
2008
2009
{
2009
2010
skipWhitespace ();
2010
2011
if (parseLiteral (" &" ))
You can’t perform that action at this time.
0 commit comments