public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "François Dumont" <frs.dumont@gmail.com>
To: Jonathan Wakely <jwakely@redhat.com>
Cc: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: [patch] libstdc++/66055 add missing constructors to unordered containers
Date: Sun, 17 May 2015 20:42:00 -0000	[thread overview]
Message-ID: <5558F840.3070306@gmail.com> (raw)
In-Reply-To: <20150516193210.GW30202@redhat.com>

Ok, I just commit fixing some other lines length except those having a 
long hyperlink, I didn't want to break those.

François


On 16/05/2015 21:32, Jonathan Wakely wrote:
> On 16/05/15 11:39 +0200, François Dumont wrote:
>> On 14/05/2015 15:47, Jonathan Wakely wrote:
>>> Reported by Nathan and fixed by his patch. I added the tests.
>>>
>>> Tested powerpc64le-linux, committed to trunk. This should be
>>> backported too.
>>
>> While backporting to debug and profile mode I noticed that those 
>> constructors were not the only missing ones. So here is a patch to 
>> complete them with debug and profile modes.
>
> Great, thanks.
>
>> @@ -233,6 +222,41 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
>>     : _M_h(__l, __n, __hf, __eql, __a)
>>       { }
>>
>> +      unordered_map(size_type __n, const allocator_type& __a)
>> +      : unordered_map(__n, hasher(), key_equal(), __a)
>> +      { }
>> +
>> +      unordered_map(size_type __n, const hasher& __hf,
>> +            const allocator_type& __a)
>> +      : unordered_map(__n, __hf, key_equal(), __a)
>> +      { }
>> +
>> +      template<typename _InputIterator>
>> +    unordered_map(_InputIterator __first, _InputIterator __last,
>> +              size_type __n,
>> +              const allocator_type& __a)
>> +      : unordered_map(__first, __last, __n, hasher(), key_equal(), __a)
>
> The indentation is inconsistent here, the ctor-initializer-list is
> indented further than necessary
>
>> @@ -891,7 +941,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
>>        *  in the initializer list @a __l.
>>        *
>>        *  Note that the assignment completely changes the 
>> %unordered_multiset
>> -       *  and that the resulting %unordered_set's size is the same 
>> as the number
>> +       *  and that the resulting %unordered_multiset's size is the 
>> same as the number
>>        *  of elements assigned.  Old data may be lost.
>
> Please reformat this to stay below 80 columns.
>
> OK with those two tiny adjustments, thanks!
>
>

  reply	other threads:[~2015-05-17 20:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-14 13:51 Jonathan Wakely
2015-05-16 10:36 ` François Dumont
2015-05-16 19:58   ` Jonathan Wakely
2015-05-17 20:42     ` François Dumont [this message]
2015-05-19 14:33       ` Jonathan Wakely

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=5558F840.3070306@gmail.com \
    --to=frs.dumont@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jwakely@redhat.com \
    --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).