Skip to content

Commit 706675f

Browse files
committed
Remove usage of remove_cvref_t for pointer and const pointer types since they weren't necessary and were messing with _Tp of const types
1 parent b63f2a9 commit 706675f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/optional

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,8 @@ class _LIBCPP_DECLSPEC_EMPTY_BASES optional
615615
using __base _LIBCPP_NODEBUG = __optional_move_assign_base<_Tp>;
616616

617617
# if _LIBCPP_STD_VER >= 26
618-
using pointer = std::add_pointer_t<std::remove_cvref_t<_Tp>>;
619-
using const_pointer = std::add_pointer_t<const std::remove_cvref_t<_Tp>>;
618+
using pointer = std::add_pointer_t<_Tp>;
619+
using const_pointer = std::add_pointer_t<const _Tp>;
620620
# endif
621621

622622
public:

0 commit comments

Comments
 (0)