Re: template typedef

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message news:e2WHwPKHJHA.4564@xxxxxxxxxxxxxxxxxxxxxxx
There will be, in the next version of the standard. For now, the closest you can get is something like this:

template <typename T>
struct typedXptr {
typedef shared_ptr<X<T> > type;
};

typedXptr<char>::type XcharPtr;

Thank you!
Alessandro

.