Add missing ref qualifier

returning a `const T` as opposed to `const T&` serves little purpose and is most likely not what the writer intended.
This change was called out by clang-tidy.
This commit is contained in:
Marco Magdy 2019-06-01 10:26:18 -07:00 committed by GitHub
parent 98747968ad
commit fb4a00d1f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -492,7 +492,7 @@ public:
}
T operator->() { return _val; }
const T operator->() const { return _val; }
const T& operator->() const { return _val; }
typedef typename rm_ptr<T>::type& ref_t;
typedef const typename rm_ptr<T>::type& const_ref_t;