Mathieu Béliveau writes:
> I guess most of you know that when using templates in a class
> declaration in c++, it's considered "good style" to separate your
> class declaration and it's implementation in two files. Since there
> are some restriction as to where you can place your methods
> definitions (especially for the constructor) - namely: they should be
> part of your header file, a somewhat best practice is to add an
> include to the .inl file implementing your class at the very bottom of
> your header file. Now it seems that this particular scheme does work
> with cedet's standard code completion. Is there anything I can
> configure to make it work (does it even recognize .inl files as valid
> c++ files?)
Well, Emacs has to switch to C++ mode when you load those files, so
something like
(add-to-list 'auto-mode-alist '("\\.inl\\'" . c++-mode))
should do the trick?
-David
|