Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Intellisense error "expected a member name" on dereferenced pointer with this->
Post Flair (click to view more posts with a particular flair)
Post Body

So I have a strange error with MSVS' intellisense when doing something like this:

class Thing{
    typedef std::map<int, vector<int>> myMap;
public:
    std::unique_ptr<myMap> memberMap;

[...] };

In some method, I want to call an element from memberMap, which works fine with

int fromMap = (*memberMap)[mapIndex][vectorIndex];

but throws Expected a member name when I do

int fromMap = this->(*memberMap)[mapIndex][vectorIndex];

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
150,005
Link Karma
18,628
Comment Karma
129,390
Profile updated: 1 day ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago