From 712ad293c5edf83b4e4e96f96753dcb22225f113 Mon Sep 17 00:00:00 2001 From: "S. B. Tam" Date: Tue, 16 Mar 2021 17:59:44 +0800 Subject: [PATCH 1/2] : _Uglify a template parameter --- stl/inc/xmemory | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl/inc/xmemory b/stl/inc/xmemory index ca3bb9bc9bf..524d41f829f 100644 --- a/stl/inc/xmemory +++ b/stl/inc/xmemory @@ -1870,7 +1870,7 @@ struct _In_place_key_extract_set<_Key, _Key> { // STRUCT TEMPLATE _In_place_key_extract_map // assumes _Args have already been _Remove_cvref_t'd -template +template struct _In_place_key_extract_map { // by default we can't extract the key in the emplace family and must construct a node we might not use static constexpr bool _Extractable = false; From 7c34a5ca405bbe23577e93d5683d2770be7dd53e Mon Sep 17 00:00:00 2001 From: cpplearner Date: Tue, 16 Mar 2021 18:24:41 +0800 Subject: [PATCH 2/2] : _Uglify two local variable names --- stl/inc/random | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stl/inc/random b/stl/inc/random index 4bef1ed35fa..54ad1c4a4d9 100644 --- a/stl/inc/random +++ b/stl/inc/random @@ -4376,12 +4376,12 @@ private: template result_type _Eval(_Engine& _Eng, const param_type& _Par0) const { double _Vx1; - gamma_distribution dist1( + gamma_distribution _Dist1( static_cast(_Par0._Kx), static_cast((_Ty{1} - _Par0._Px) / _Par0._Px)); - _Vx1 = dist1(_Eng); - poisson_distribution<_Ty> dist2(_Vx1); + _Vx1 = _Dist1(_Eng); + poisson_distribution<_Ty> _Dist2(_Vx1); - return dist2(_Eng); + return _Dist2(_Eng); } param_type _Par;