I want to create a C-macro with a method that receives a template class. It is this possible?
template <class T>
Int_t MyMethod( T* cPointer )
{
// Do whatever with T*
}
A simple macro including this seems to load without errors into ROOT command interface using .L. However, later on the method is not recognised, not autocompleted.
I didn’t realise it was working because the function is not autocompleting using TAB key.
So, if I write on ROOT console tfu and press TAB key several times, it will not autocomplete or offer any suggestions. Thats why I thought the method was not loaded. When I execute tfunc once, the method with the integer version exists, and autocompletes.
Personally, this is not convenient if I want to check the methods that are available/loaded. Even if they use a generic template.