[libcxx-commits] [PATCH] D112888: old standards
Dmitriy Izvolov via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Oct 31 08:13:59 PDT 2021
izvolov created this revision.
izvolov requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112888
Files:
libcxx/include/__algorithm/radix_sort.h
Index: libcxx/include/__algorithm/radix_sort.h
===================================================================
--- libcxx/include/__algorithm/radix_sort.h
+++ libcxx/include/__algorithm/radix_sort.h
@@ -29,6 +29,8 @@
_LIBCPP_BEGIN_NAMESPACE_STD
+#if _LIBCPP_STD_VER > 14
+
inline void __variadic_expansion_dummy(initializer_list<int>) {}
#define EXPAND_VARIADIC(expression) __variadic_expansion_dummy({(expression, 0)...})
@@ -261,6 +263,15 @@
#undef EXPAND_VARIADIC
+#else // _LIBCPP_STD_VER > 14
+
+template <typename _RandomAccessIterator1, typename _RandomAccessIterator2, bool _B>
+bool __radix_sort(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _BoolConstant<_B>) {
+ return false;
+}
+
+#endif // _LIBCPP_STD_VER > 14
+
_LIBCPP_END_NAMESPACE_STD
_LIBCPP_POP_MACROS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112888.383654.patch
Type: text/x-patch
Size: 821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211031/fa38e2d6/attachment.bin>
More information about the libcxx-commits
mailing list