[libcxx-commits] [libcxx] 866b279 - [libc++] s/_VSTD::is_unsigned/is_unsigned/ in <random>. NFCI.

Arthur O'Dwyer via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 11 09:24:52 PDT 2021


Author: Arthur O'Dwyer
Date: 2021-05-11T12:23:55-04:00
New Revision: 866b27950aaf2c38f4ecfc8a0f18945fff3b8542

URL: https://github.com/llvm/llvm-project/commit/866b27950aaf2c38f4ecfc8a0f18945fff3b8542
DIFF: https://github.com/llvm/llvm-project/commit/866b27950aaf2c38f4ecfc8a0f18945fff3b8542.diff

LOG: [libc++] s/_VSTD::is_unsigned/is_unsigned/ in <random>. NFCI.

Added: 
    

Modified: 
    libcxx/include/random
    libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/params.fail.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/include/random b/libcxx/include/random
index f07c999e67ef4..eb2d37d9cda9a 100644
--- a/libcxx/include/random
+++ b/libcxx/include/random
@@ -1919,7 +1919,7 @@ private:
 
     static_assert(__m == 0 || __a < __m, "linear_congruential_engine invalid parameters");
     static_assert(__m == 0 || __c < __m, "linear_congruential_engine invalid parameters");
-    static_assert(_VSTD::is_unsigned<_UIntType>::value, "_UIntType must be unsigned type");
+    static_assert(is_unsigned<_UIntType>::value, "_UIntType must be unsigned type");
 public:
     static _LIBCPP_CONSTEXPR const result_type _Min = __c == 0u ? 1u: 0u;
     static _LIBCPP_CONSTEXPR const result_type _Max = __m - 1u;

diff  --git a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/params.fail.cpp b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/params.fail.cpp
index 86e627344a48b..5c6e7f7fd3b36 100644
--- a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/params.fail.cpp
+++ b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/params.fail.cpp
@@ -24,7 +24,7 @@ int main(int, char**)
     // expected-error at random:* {{static_assert failed due to requirement '1ULL == 0 || 1ULL < 1ULL' "linear_congruential_engine invalid parameters"}}
     std::linear_congruential_engine<T, 0, 1, 1> e3;
     std::linear_congruential_engine<T, 1, 0, 1> e4;
-    // expected-error-re at random:* {{static_assert failed due to requirement 'std:{{.*}}:is_unsigned<int>::value' "_UIntType must be unsigned type"}}
+    // expected-error at random:* {{static_assert failed due to requirement 'is_unsigned<int>::value' "_UIntType must be unsigned type"}}
     std::linear_congruential_engine<int, 0, 0, 0> e5;
 
     return 0;


        


More information about the libcxx-commits mailing list