Patchwork unordered set design modification

login
register
mail settings
Submitter François Dumont
Date Oct. 21, 2012, 7:13 p.m.
Message ID <50844971.7080102@gmail.com>
Download mbox | patch
Permalink /patch/193053/
State New
Headers show

Comments

François Dumont - Oct. 21, 2012, 7:13 p.m.
On 10/21/2012 11:47 AM, Paolo Carlini wrote:
> On 10/20/2012 11:07 PM, François Dumont wrote:
>>     I have also put a fix in profile/map.h even if it is unrelated to 
>> this evolution. Should I commit it outside this patch ?
> Yes please!
>
> Thanks,
> Paolo.
>
>

Attached patch applied.

2012-10-21  François Dumont  <fdumont@gcc.gnu.org>

     * include/profile/map.h (map::emplace_hint): Remove invalid
     parenthesis.

François

Patch

Index: include/profile/map.h
===================================================================
--- include/profile/map.h	(revision 192623)
+++ include/profile/map.h	(working copy)
@@ -253,7 +253,7 @@ 
 	{
 	  size_type size_before = size();
 	  auto __res = _Base::emplace_hint(__pos.base(),
-					   std::forward<_Args>(__args)...));
+					   std::forward<_Args>(__args)...);
 	  __profcxx_map_to_unordered_map_insert(this, size_before,
 						size() - size_before);
 	}