Hashtable: Add missing std qualification on a forward call
diff mbox series

Message ID c6c35aab-5c6b-8470-ebe9-1f778028126d@gmail.com
State New
Headers show
Series
  • Hashtable: Add missing std qualification on a forward call
Related show

Commit Message

François Dumont Feb. 11, 2020, 6:15 p.m. UTC
I just notice that in a recent patch I forgot a std:: on a call to forward.

* include/bits/hashtable.h (_Hashtable<>(_Hashtable&&, 
std::allocator_type&)):
     Add missing std namespace qualification to forward call.

Ok to commit ?

François

Comments

Jonathan Wakely Feb. 12, 2020, 7:47 a.m. UTC | #1
On 11/02/20 19:15 +0100, François Dumont wrote:
>I just notice that in a recent patch I forgot a std:: on a call to forward.
>
>* include/bits/hashtable.h (_Hashtable<>(_Hashtable&&, 
>std::allocator_type&)):
>    Add missing std namespace qualification to forward call.
>
>Ok to commit ?

Yes please - thanks.

Patch
diff mbox series

diff --git a/libstdc++-v3/include/bits/hashtable.h b/libstdc++-v3/include/bits/hashtable.h
index 9e721aad8cc..b00319a668b 100644
--- a/libstdc++-v3/include/bits/hashtable.h
+++ b/libstdc++-v3/include/bits/hashtable.h
@@ -1371,7 +1371,7 @@  _GLIBCXX_BEGIN_NAMESPACE_VERSION
 	  using _Fwd_Ht = typename
 	    conditional<__move_if_noexcept_cond<value_type>::value,
 			const _Hashtable&, _Hashtable&&>::type;
-	  _M_assign(forward<_Fwd_Ht>(__ht), __alloc_gen);
+	  _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen);
 	  __ht.clear();
 	}
     }