[libc++] Allow building with C++17.

After committing D92214 it was noticed libc++ no longer builds with
C++17. For now reenable building with C++17. This is intended to be a
temporary measure in the future a C++20 capable compiler will be
required.

GitOrigin-RevId: 8869e2f969101426e8615bb3cb0e7186938c23c7
diff --git a/src/format.cpp b/src/format.cpp
index 8ae9554..c36c20e 100644
--- a/src/format.cpp
+++ b/src/format.cpp
@@ -10,6 +10,10 @@
 
 _LIBCPP_BEGIN_NAMESPACE_STD
 
+#if _LIBCPP_STD_VER > 17
+
 format_error::~format_error() noexcept = default;
 
+#endif //_LIBCPP_STD_VER > 17
+
 _LIBCPP_END_NAMESPACE_STD