Skip to content

Commit

Permalink
Revert "Added add_lvalue_reference for rvalue reference"
Browse files Browse the repository at this point in the history
This reverts commit a09efff.
  • Loading branch information
John Wellbelove committed Oct 28, 2023
1 parent a09efff commit 09c3b30
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions include/etl/generators/type_traits_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -687,9 +687,6 @@ namespace etl
/// add_lvalue_reference
template <typename T> struct add_lvalue_reference { typedef T& type; };
template <typename T> struct add_lvalue_reference<T&> { typedef T& type; };
#if ETL_USING_CPP11
template <typename T> struct add_lvalue_reference<T&&> { typedef T& type; };
#endif
template <> struct add_lvalue_reference<void> { typedef void type; };
template <> struct add_lvalue_reference<const void> { typedef const void type; };
template <> struct add_lvalue_reference<volatile void> { typedef volatile void type; };
Expand Down
3 changes: 0 additions & 3 deletions include/etl/type_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -675,9 +675,6 @@ namespace etl
/// add_lvalue_reference
template <typename T> struct add_lvalue_reference { typedef T& type; };
template <typename T> struct add_lvalue_reference<T&> { typedef T& type; };
#if ETL_USING_CPP11
template <typename T> struct add_lvalue_reference<T&&> { typedef T& type; };
#endif
template <> struct add_lvalue_reference<void> { typedef void type; };
template <> struct add_lvalue_reference<const void> { typedef const void type; };
template <> struct add_lvalue_reference<volatile void> { typedef volatile void type; };
Expand Down

0 comments on commit 09c3b30

Please sign in to comment.