From: Jonathan Wakely <jwakely@redhat.com>
To: "François Dumont" <frs.dumont@gmail.com>
Cc: "libstdc++@gcc.gnu.org" <libstdc++@gcc.gnu.org>,
gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: Hide _S_n_primes from user code
Date: Mon, 27 Apr 2015 11:32:00 -0000 [thread overview]
Message-ID: <20150427113155.GF3618@redhat.com> (raw)
In-Reply-To: <55380079.3000105@gmail.com>
On 22/04/15 22:11 +0200, François Dumont wrote:
>+ constexpr auto __n_primes
>+ = sizeof(__prime_list) / sizeof(unsigned long) - 1;
Normally I'd say
sizeof(__prime_list) / sizeof(*__prime_list) - 1
would be better, but since it's very unlikely we'll change the element
type in the array what you have should be safe.
OK for trunk.
next prev parent reply other threads:[~2015-04-27 11:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-22 19:39 François Dumont
2015-04-22 20:11 ` François Dumont
2015-04-27 11:32 ` Jonathan Wakely [this message]
2015-04-22 20:13 ` Marek Polacek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150427113155.GF3618@redhat.com \
--to=jwakely@redhat.com \
--cc=frs.dumont@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=libstdc++@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).