Topic: Why no support for template aliases?
Author: "Yordan Naydenov" <dax_uktc@abv.bg>
Date: Sat, 2 Jul 2011 01:15:45 CST Raw View
It may well be that some incompleteness could be attributed to that table,
as is (almost) the case with such synoptic inventories. Moreover, two months
plus since the last edition are sufficient period to make that source a
little bit outdated.
As of March this year, the EDG C++ front end ver. 4.3 provided support for
template aliasing: http://www.edg.com/index.php?location=c_lang. See also
http://www.edg.com/docs/edg_cpp.pdf.
I am quite sure that EDG will fulfil the need and desire for a complete
C++0x support, as it has already been done for the previous standard
versions and language dialects. (Un)fortunately, there is more than a great
chance that EDG's product will remain the only source which provides full
coverage of all of the standard language features - a lonely focus and base
for the scarce number of compilers which may fairly be labeled
"standard-compliant."
~Yordan Naydenov
"Joe Gottman" <josephgottman@comcast.net> wrote in message
news:d4mNp.217624$Li5.129595@en-nntp-11.dc1.easynews.com...
>
> According to this website
> (http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport) no current
> compiler has support for the new template aliases. Why is this? Is
> this because they are too hard to implement or just that nobody
> thought they were important enough? I would really like to be able to
> code with these. Not only are template typedefs something that C++
> programmers have been asking for for ages, but even without the
> templates the new alias syntax is much nicer. I would definitely
> prefer writing
> using handler_t = void (*)(int);
> over
> typedef void (*handler_t)(int);
>
> Joe Gottman
>
>
> --
> [ comp.std.c++ is moderated. To submit articles, try posting with your ]
> [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
> [ --- Please see the FAQ before posting. --- ]
> [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
>
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: Joe Gottman <josephgottman@comcast.net>
Date: Sat, 25 Jun 2011 14:05:36 CST Raw View
According to this website
(http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport) no current
compiler has support for the new template aliases. Why is this? Is
this because they are too hard to implement or just that nobody
thought they were important enough? I would really like to be able to
code with these. Not only are template typedefs something that C++
programmers have been asking for for ages, but even without the
templates the new alias syntax is much nicer. I would definitely
prefer writing
using handler_t = void (*)(int);
over
typedef void (*handler_t)(int);
Joe Gottman
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: "Johannes Schaub (litb)" <schaub.johannes@googlemail.com>
Date: Sun, 26 Jun 2011 20:09:39 CST Raw View
Joe Gottman wrote:
>
> According to this website
> (http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport) no current
> compiler has support for the new template aliases.
Clang supports them. Good news!
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: "Bo Persson" <bop@gmb.dk>
Date: Sun, 26 Jun 2011 20:10:26 CST Raw View
Joe Gottman wrote:
> According to this website
> (http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport) no current
> compiler has support for the new template aliases. Why is this? Is
> this because they are too hard to implement or just that nobody
> thought they were important enough? I would really like to be able
> to code with these. Not only are template typedefs something that
> C++ programmers have been asking for for ages, but even without the
> templates the new alias syntax is much nicer. I would definitely
> prefer writing
> using handler_t = void (*)(int);
> over
> typedef void (*handler_t)(int);
>
I would like to have a complete C++11 compiler! :-)
There are a lot of feature to implement, and obviously the compiler
writers have seen it more useful to start with rvalue references,
auto/decltype, lambda functions, and nullptr.
Bo Persson
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]