intellisense not working for some pointers

Hi guys. I have a problem with intellisense. I have written a class with pointers to the members, but for some of them intellisense doesn't work. I know that if there is a syntax mistake, intellisense won't work, but the code compiles without errors ( it gives an error during runtime thought).

Does anyone know what could make intellisense be like this?

Thanks a lot for your help
Well, that happens. I don't know why. Try deleting the ncb file of your project. It should then fix itself..
Thanks a lot. But that didn't work. It's strange.
closed account (zb0S216C)
Are you working with inline files? Intellisense doesn't seem to pickup errors within inline files.

Wazzak
I'm sorry, could you tell me what inline files mean?
I have header and cpp files for one class. the declarations are in the header and the implementation is in the cpp file.
closed account (zb0S216C)
soheilghafurian wrote:
I'm sorry, could you tell me what inline files mean? (sic)

An in-line file is a file that contains definitions of template functions and classes. An in-line file is usually included after the declarations of template classes and/or functions. For example:

TemplateDefs.h:

1
2
3
4
5
template < typename T >
T Function( const T & );

// .INL is the default extension for an in-line file.
#include "TemplateDefs_Inline.inl" 

TemplateDefs_Inline.inl:

1
2
3
4
5
template < typename T >
T Function( const T &Target )
{
    return T( Target );
}

In-line files alone have no meaning to compilers since they're not a standard C++ file type. Basically, in-line files are ordinary files that contain definitions of template functions/classes.

Wazzak
Last edited on
Thanks a lot for your guide. I didn't know about inline files. Can I ask another question? Why don't we define the template in a cpp file?
Topic archived. No new replies allowed.