Eclipse Oxygen: How to have indexer follow C++11 std::shared_ptr<> [message #1784551] |
Thu, 29 March 2018 09:39 |
Francesco Montorsi Messages: 1 Registered: March 2018 |
Junior Member |
|
|
Hi,
I'm using Eclipse Oxygen.3 and I have the following pseudo code:
class mytest
{
public:
...
void mymethod() {}
};
then I have code that says:
std::shared_ptr<mytest> p = std::make_shared<mytest>();
p->mymethod();
I found that Eclipse is unable to "trace back" the p->mymethod(); line to the mytest::mymethod routine. I.e. if I place the cursor over that p->mymethod() and hit F3 (open declaration) Eclipse cannot find the reference.
Is this a bug or am I missing some settings?
Note: opening other declarations works just fine. Also opening memory.h file I see that eclipse highlights the "#if __cplusplus >= 201103L" section (I had to add -std=c++11 to the "GCC compiler settings provider" in my Project options).
Thanks,
Francesco
|
|
|
Powered by
FUDForum. Page generated in 0.02865 seconds