I'm working with some C++/CLI code (new syntax) and am trying to declare a generic type and want to set a member variable to it's default.
In C#:
class Class<T>
{
T member = default(T);
}
What's the equivalent in CLI?
generic<typename T> public ref class Class
{
public:
Class() : member(default(T)) // <-- no worky
{
}
private:
T member;
};