fix a subtle bug in AddRvalueReference

master
Daniel Kolesa 2015-07-11 02:28:40 +01:00
parent 28cbc8f4a9
commit 3fd83c4bbd
1 changed files with 3 additions and 6 deletions

View File

@ -845,7 +845,6 @@ using AddPointer = typename detail::AddPointerBase<T>::Type;
namespace detail {
template<typename T> struct AddLr { using Type = T &; };
template<typename T> struct AddLr<T &> { using Type = T &; };
template<typename T> struct AddLr<T &&> { using Type = T &; };
template<> struct AddLr<void> {
using Type = void;
};
@ -864,8 +863,6 @@ namespace detail {
namespace detail {
template<typename T> struct AddRr { using Type = T &&; };
template<typename T> struct AddRr<T &> { using Type = T &&; };
template<typename T> struct AddRr<T &&> { using Type = T &&; };
template<> struct AddRr<void> {
using Type = void;
};