[libc++] Remove workarounds for the lack of deduction guides in C++17

All supported compilers have supported deduction guides in C++17 for a
while, so this isn't necessary anymore.

Differential Revision: https://reviews.llvm.org/D108213

NOKEYCHECK=True
GitOrigin-RevId: 01666904013c1514b16ace896ba346d1273a034f
diff --git a/include/regex b/include/regex
index e47cf9f..a0bf3e2 100644
--- a/include/regex
+++ b/include/regex
@@ -3014,7 +3014,7 @@
     template <class, class> friend class __lookahead;
 };
 
-#ifndef _LIBCPP_HAS_NO_DEDUCTION_GUIDES
+#if _LIBCPP_STD_VER >= 17
 template <class _ForwardIterator,
           class = typename enable_if<__is_cpp17_forward_iterator<_ForwardIterator>::value, nullptr_t>::type
 >