[libcxx-commits] [libcxx] 37f7e31 - [libc++] [test] Qualify calls to std::get(tuple). NFC.

Arthur O'Dwyer via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 16 08:04:22 PST 2022


Author: Arthur O'Dwyer
Date: 2022-02-16T11:03:35-05:00
New Revision: 37f7e31015b0e025f0f72e6146b25269662ad282

URL: https://github.com/llvm/llvm-project/commit/37f7e31015b0e025f0f72e6146b25269662ad282
DIFF: https://github.com/llvm/llvm-project/commit/37f7e31015b0e025f0f72e6146b25269662ad282.diff

LOG: [libc++] [test] Qualify calls to std::get(tuple). NFC.

It actually *is* important (for structured bindings) that `get(tuple)`
be ADL-able; but that's not the point of this test in particular.

Reviewed as part of D119860.

Added: 
    

Modified: 
    libcxx/test/std/ranges/range.utility/range.subrange/ctor.pair_like_conv.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/ranges/range.utility/range.subrange/ctor.pair_like_conv.pass.cpp b/libcxx/test/std/ranges/range.utility/range.subrange/ctor.pair_like_conv.pass.cpp
index 26932f8084ad4..c38a3979312c9 100644
--- a/libcxx/test/std/ranges/range.utility/range.subrange/ctor.pair_like_conv.pass.cpp
+++ b/libcxx/test/std/ranges/range.utility/range.subrange/ctor.pair_like_conv.pass.cpp
@@ -35,8 +35,8 @@ constexpr bool test() {
   assert(aPair.first.base() == globalBuff);
   assert(aPair.second.base() == globalBuff + 8);
   std::tuple<ForwardIter, ForwardIter> aTuple = a;
-  assert(get<0>(aTuple).base() == globalBuff);
-  assert(get<1>(aTuple).base() == globalBuff + 8);
+  assert(std::get<0>(aTuple).base() == globalBuff);
+  assert(std::get<1>(aTuple).base() == globalBuff + 8);
 
   return true;
 }


        


More information about the libcxx-commits mailing list