Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

[SOLVED] QSet::find() iterator dereferencing gets "cannot convert 'this' pointer" error?

$
0
0
I get the error on trying to access the iterator reference:         QSet<UniqueWord>::iterator iter = uniqueWords.find(word);         iter->addOccurrence(position); // this gets an error error: C2662: ‘UniqueWord::addOccurrence’ : cannot convert ‘this’ pointer from ‘const UniqueWord’ to ‘UniqueWord &’ Conversion loses qualifiers What does the “this” pointer has to do with anything? What am I missing?

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>