How to disambiguate a function call in GCC C++? -
How to disambiguate a function call in GCC C++? -
i next error warning:
reference 'selectionmode' ambiguous candidates are: virtual kfile::selectionmode kfileview::selectionmode() const virtual kfile::selectionmode selectionmode() const; the phone call follows:
homecoming kfileiconview::selectionmode(); how can disambiguate phone call refer either first or sec variant (i think sec right one)?
update:
i fixed build replacing phone call following: return kfileiconview::kfileview::selectionmode(); think chooses first candidate. how can take sec candidate if first wrong one?
you have utilize scope resolution operator disambiguate functions.
calling kfileview::selection mode outside class:
kfileview view; view.selectionmode(); ::selectionmode(); used phone call global function within kfileview implementation.
kfileview::selectionmode(); used phone call fellow member function within kfileview implementation.
c++ gcc disambiguation
Comments
Post a Comment