Re: template typedef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vincent Torri <Vincent.Torri@xxxxxxxxxxxxxxx> writes:

| Hey, thanks for the (2) answer(s)
| 
| ok, so its uses is a bit less obvious. You use the fact that classes can
| be "templated" and that they can contain typedef.

Hi Vincent,

  Formally, there is no template typedef in current C++.  You can
-emulate- it with the syntax Eljay suggested.  For C++0x, there will
be a way to do that, through what we call "template alias"

   template<typename T>
     using Registery = std::mapt<std::string, T>;

but that is not yet implemented in g++.

-- Gaby

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux