#include <iostream>
usingnamespace std;
template <typename T>
class Something
{
private:
public:
using BigNum = unsignedint;
};
int main()
{
struct MyStruct{};
Something<MyStruct>::BigNum x; // Can only use the 'typedef' if template parameter specified
Something::BigNum x; // doesn't work
return 0;
}
Having to specify the template parameter is a bit ugly. Is there any way to avoid this (other than putting the typedef outside the class)?