[libc++][NFC] Don't rely on `<algorithm>` transitively including `<memory>` in tests
authorIgor Zhukov <fsb4000@yandex.ru>
Wed, 3 Aug 2022 00:45:28 +0000 (20:45 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Wed, 3 Aug 2022 00:46:05 +0000 (20:46 -0400)
Found by @cpplearner (https://github.com/microsoft/STL/pull/2976#discussion_r935440806)

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

libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp

index 870fe1a..7198a34 100644 (file)
@@ -14,6 +14,7 @@
 // ensure that all result alias declarations are defined
 
 #include <algorithm>
+#include <memory>
 #include <type_traits>
 
 using namespace std::ranges;