Remember that this code works in C #, but not in VC ++. NET (infuriating). I wonder where my mistake is.
Based on the code:
public interface class iTest { public: generic <typename T> virtual void AddCriteriaList(List<T> ^CriterionList); }; generic <typename Q> public ref class IUseInterface : iTest { public: generic <typename T> virtual void AddCriteriaList(List<T> ^CriterionList) { } };
I get error C3766: "IUseInterface" should provide an implementation of the interface method "void iTest :: AddCriteriaList (System :: Collections :: Generic :: List ^)"
The strange thing is, if I remove the general constraint (Q) on the IUseInterface, the error will disappear. I don't understand how to make my generic class have ANYTHING to do with the general for a particular function.
Any ideas? Thanks
source share