From fcd3172eeaa813ae5146d05e14bd05fb68f9262a Mon Sep 17 00:00:00 2001 From: Krystyna Lopez Date: Thu, 21 Nov 2019 13:04:06 -0500 Subject: [PATCH] Fix issue-268: change return type from non-const to const --- stl/inc/xlocale | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl/inc/xlocale b/stl/inc/xlocale index 65527656cb..a30a44b0d4 100644 --- a/stl/inc/xlocale +++ b/stl/inc/xlocale @@ -354,7 +354,7 @@ public: } } - locale& operator=(const locale& _Right) noexcept { + const locale& operator=(const locale& _Right) noexcept { if (_Ptr != _Right._Ptr) { // different implementation, point at new one delete _Ptr->_Decref(); _Ptr = _Right._Ptr;