David Megginson writes:
>
>I have a question for the C++ heads.  Let's assume that I have
>something like this:
>
>  template <class C, class T>
>  T
>  Binding<C,T>::get_value () const
>  {
>    return (_obj.*_getter)();  
>  }
>
>assuming
>
>  C &_obj;
>  T (C::*_getter)() const;
>
>This always gets instantiated correctly when I included it inline in
>the header file, but not when I move the definition out to the cxx
>file.  Is that an inherent limitation of templates?  I cannot
>pre-instantiate all the templates I might need in the cxx file,
>because I don't know what classes people will use this with.

For this I believe you need RTTI

I have found the RTTI library here quite useful  
http://www.win.tue.nl/~alext/ALEX/C++/cplusplus.html

whether or not we want to add RTTI  to FGFS well .....

Norman

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to