Topic: templated typedefs


Author: "jam" <farid.mehrabi@gmail.com>
Date: Wed, 28 Feb 2007 12:03:39 CST
Raw View
On Feb 28, 7:24 pm, "Pedro Lamar   o" <pedro.lama...@gmail.com> wrote:
> On 28 fev, 13:16, "jam" <farid.mehr...@gmail.com> wrote:
>
> > Has it finally become part of standard or not?
> > I mean something like this (though it shoud be obvious):
>
> > template<class A>class generic;
> > template<class A>typedef generic<A> my_type; /*LOOK HERE*/
> > my_type<int> my_obj;
>
> Not yet.
>
> You can check the current state of C++ evolution in this document:
>
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2142.html
>
> You will find there that the "Template aliases for C++" is almost in.
>
> --
>  Pedro Lamar   o
>
> ---
> [ comp.std.c++ is moderated.  To submit articles, try just posting with ]
> [ your news-reader.  If that fails, use mailto:std-...@ncar.ucar.edu    ]
> [              --- Please see the FAQ before posting. ---               ]
> [ FAQ:http://www.comeaucomputing.com/csc/faq.html                     ]

Thanx Pedro
I remember an n for variadic templates.


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: "jam" <farid.mehrabi@gmail.com>
Date: Wed, 28 Feb 2007 09:16:42 CST
Raw View
Has it finally become part of standard or not?
I mean something like this (though it shoud be obvious):

template<class A>class generic;
template<class A>typedef generic<A> my_type; /*LOOK HERE*/
my_type<int> my_obj;

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: "=?iso-8859-1?q?Pedro_Lamar=E3o?=" <pedro.lamarao@gmail.com>
Date: Wed, 28 Feb 2007 10:24:29 CST
Raw View
On 28 fev, 13:16, "jam" <farid.mehr...@gmail.com> wrote:
> Has it finally become part of standard or not?
> I mean something like this (though it shoud be obvious):
>
> template<class A>class generic;
> template<class A>typedef generic<A> my_type; /*LOOK HERE*/
> my_type<int> my_obj;

Not yet.

You can check the current state of C++ evolution in this document:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2142.html

You will find there that the "Template aliases for C++" is almost in.

--
 Pedro Lamar   o


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: "Emmanuel Deloget" <logout@free.fr>
Date: Wed, 28 Feb 2007 12:06:31 CST
Raw View
On 28 f   v, 16:16, "jam" <farid.mehr...@gmail.com> wrote:
> Has it finally become part of standard or not?
> I mean something like this (though it shoud be obvious):
>
> template<class A>class generic;
> template<class A>typedef generic<A> my_type; /*LOOK HERE*/
> my_type<int> my_obj;

According to this:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2142.html

It seems so. See the "template aliases" proposal(s) by Stroustrup &
al.

Regards,

-- Emmanuel Deloget


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]