From 6aab5b3a5300c63bbbfeecf243c8fb2bd6bd0681 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Mon, 7 Dec 2015 16:11:54 -0600 Subject: shared_ptr r-value ref ctor didn't match standard Change-Id: I4825be8ff9929eadc3ee78d2141f6a3d43ea751b Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22518 Reviewed-by: Christian Geddes Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/include/util/impl/shared_ptr.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/util/impl/shared_ptr.H') diff --git a/src/include/util/impl/shared_ptr.H b/src/include/util/impl/shared_ptr.H index 4530b5acf..a6cca17e5 100644 --- a/src/include/util/impl/shared_ptr.H +++ b/src/include/util/impl/shared_ptr.H @@ -93,14 +93,14 @@ namespace std return *this; } - shared_ptr& operator=(const shared_ptr&& r) + shared_ptr& operator=(shared_ptr&& r) { _cleanup(); _swap(std::move(r)); return *this; } - template shared_ptr& operator=(const shared_ptr&& r) + template shared_ptr& operator=(shared_ptr&& r) { _cleanup(); _swap(std::move(r)); -- cgit v1.2.3