Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C++ Template Find References(Indexer Issues)
C++ Template Find References [message #1795285] Wed, 19 September 2018 21:59 Go to next message
Greg Aicher is currently offline Greg AicherFriend
Messages: 1
Registered: September 2018
Junior Member
Hello,

I'm trying to find references for A::Print() below however it seems like the indexer cannot find any references in the following code. I'm looking for the indexer to show me a reference on Printer::Print() at t.Print() but it returns 0 matches after a clean rebuild.

#include <iostream>

struct A
{
void Print() {std::cout << "Hello" << std::endl;};
};

template <typename T>
class Printer
{
public:
void Print() {t.Print();}
T t;
};

int main() {
Printer<A> p1;
p1.Print();
return 0;
}
Re: C++ Template Find References [message #1796175 is a reply to message #1795285] Mon, 08 October 2018 03:32 Go to previous message
Marc-André Laperle is currently offline Marc-André LaperleFriend
Messages: 256
Registered: July 2009
Senior Member
I can't reproduce this bug but maybe you could report it and add more details: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=CDT
Previous Topic:Project from local git repo not indexing
Next Topic:Error staring process
Goto Forum:
  


Current Time: Fri Apr 26 12:11:39 GMT 2024

Powered by FUDForum. Page generated in 0.02892 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top