logo       

operator->: msg#00002

emacs.semantic

Subject: operator->

Hello,

another issue,
may be it also related to "array of objects"

code:

struct A {
int a;
int b;
};

A a;
A *pa(&a);

pa->
M-x semantic-complete-analyze-inline
it show "a" and "b",
but if use such construction:
struct my_iterator {
my_iterator(A *a_) : a(a_) {}
A *operator->() { return a; }
private:
A *a;
};

A c;
my_iterator mi(&c);
mi->
M-x semantic-complete-analyze-inline
it show "a" and "my_iterator"

--
/Evgeniy



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise