RemoveRef should not remove the const
This does not fix anything, because AreArgumentsCompatible already do all the type checks. But it make RemoveRef consistant with std::remove_reference Change-Id: Ic42c872356172d7f5ea10de050254b5d10e50a6e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
5f65d8ea25
commit
3688fac040
@ -52,7 +52,6 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QtPrivate {
|
||||
template <typename T> struct RemoveRef { typedef T Type; };
|
||||
template <typename T> struct RemoveRef<const T&> { typedef T Type; };
|
||||
template <typename T> struct RemoveRef<T&> { typedef T Type; };
|
||||
template <typename T> struct RemoveConstRef { typedef T Type; };
|
||||
template <typename T> struct RemoveConstRef<const T&> { typedef T Type; };
|
||||
|
Loading…
Reference in New Issue
Block a user