Message from discussion
How to find an enum's underlying type?
Received: by 10.68.234.38 with SMTP id ub6mr10045644pbc.2.1337262225766;
Thu, 17 May 2012 06:43:45 -0700 (PDT)
MIME-Version: 1.0
Path: pr3ni9202pbb.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
From: Marc <marc.gli...@gmail.com>
Newsgroups: comp.lang.c++.moderated
Subject: Re: How to find an enum's underlying type?
Date: Thu, 17 May 2012 06:43:42 -0700 (PDT)
Organization: INRIA - CR Paris-Rocquencourt
Lines: 20
Sender: lang-cpp-requ...@vandevoorde.com
Approved: c.l....@bazarov.com
Message-ID: <jp27hk$hm7$1@news-rocq.inria.fr>
References: <jovrdf$43l$1@speranza.aioe.org>
<10543603.672.1337197181061.JavaMail.geo-discussion-forums@ynid1>
NNTP-Posting-Host: 5ZVzKxA6JHhiNQ2qsR7fiYbv72GOXvHjohQr6cOX0Tg=
X-Trace: news.albasani.net H4jHbN5atHdZMW33JefpDlrNKQoiArJ7rR/BX82LGlJgqVmWKLxjnG6hUKEQJmYO+RJPLStDL9E3nljxWM8Gog==
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Thu, 17 May 2012 13:43:45 +0000 (UTC)
X-Mailer: Perl5 Mail::Internet v2.05
X-Submission-Address: lang-cpp-sub...@vandevoorde.com
Cancel-Lock: sha1:RtFn6eJTpDS+sngmT69JnL8eTzM=
X-Original-Date: Thu, 17 May 2012 06:57:56 +0000 (UTC)
Content-Type: text/plain; charset=iso-8859-1
Zoltan Juhasz wrote:
> I would guess that 'std::underlying_type' is not implemented in
> libstdc++ that is shipped with gcc 4.6.3. Unfortunately the
> libstdc++ status page does not provide information on a specific
> release, but only on the mainline GCC SVN (see 20.9.7.6):
>
> http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html
You can access the documentation of each release:
http://gcc.gnu.org/onlinedocs/gcc-4.6.0/libstdc++/manual/manual/status.html#
status.iso.200x
(says underlying_type is missing)
For 4.6.3, it seems to say it is present, which looks like a bug.
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]