template typedef
- From: "Alessandro Vergani" <avergani@xxxxxxxxxxx>
- Date: Mon, 22 Sep 2008 10:24:16 +0200
Hi all,
suppose I have a template class like:
template <typename T>
struct X
{
T value;
};
If I need a shared_ptr to this class I declare it like:
std::tr1::shared_ptr<X<char>> XcharPtr;
Is there a way to typedef the first part, so I can do something like:
typedXptr<char> XcharPtr;
I can do it with #defines but there must be a better way...
Thank you
--
Alessandro .
- Follow-Ups:
- Re: template typedef
- From: Igor Tandetnik
- Re: template typedef
- Prev by Date: Re: Linked Lists debugger question
- Next by Date: virtual function call issue
- Previous by thread: Oris Williams F1 Day Date Stainless Steel Mens Watch 635-7560-4142RS
- Next by thread: Re: template typedef
- Index(es):
Relevant Pages
|