Hi! I have the following code. i know, it doesn't make sense the way it is, at the moment: some things where stripped out, but it's compilable. the problem exists in the complete code used in production, also.
class IService1 { public: virtual ~IService1(){};
public: virtual void Method1() = 0; };
class IService2 { public: virtual ~IService2(){};
public: virtual void Method2() = 0; };
class ServiceProvider { public: template<class TServiceInterface> TServiceInterface& GetService() { return static_cast<ServiceProvider const* const>( this )->GetService(); };
If i want to use the serviceprovider-class in a blank console project (within the main-routine), the code-completion doesn't work. it shows absolutely nothing:
int _tmain( int aiArgCount, TCHAR* appsArgs[], TCHAR* appsEnvVars[] ) { ServiceProvider x;
x.GetService<IService1>(). // sadly no code-completion here...
return 0; } The problem can be easily reproduced, using the whole project structure and settings i sent you with case-id 66058. Simply copy the code from this post into the main.cpp i sent to you to reproduce the problem. thx in advance max