Hi,
I am working on WinRT/C++ project and I am wondering if there is a way to define parametrized method in MIDL runtime class.
I would like to have something simillar to the following. I simplified the code as much as possible but it should explain the point.
class ServiceFactory {
template <typename T>
T getService<T>(const hstring& serviceName);
}
ServiceFactory sf;
....
ServiceX x = sf.getService<ServiceX>("X");
In MIDL file I would expect to be able to define something like this
runtimeclass ServiceFactory {
<type T> T getService<T>();
}