[libcxx-commits] [libcxx] 93a2fec - [libc++][NFC] Add consteval to ranges::__get_wider_signed::__call
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Mar 5 05:09:55 PST 2023
Author: Nikolas Klauser
Date: 2023-03-05T14:09:44+01:00
New Revision: 93a2feccbc909230b6a091f5836b92739bd12941
URL: https://github.com/llvm/llvm-project/commit/93a2feccbc909230b6a091f5836b92739bd12941
DIFF: https://github.com/llvm/llvm-project/commit/93a2feccbc909230b6a091f5836b92739bd12941.diff
LOG: [libc++][NFC] Add consteval to ranges::__get_wider_signed::__call
Added:
Modified:
libcxx/include/__ranges/iota_view.h
Removed:
################################################################################
diff --git a/libcxx/include/__ranges/iota_view.h b/libcxx/include/__ranges/iota_view.h
index c3b2dfde91607..fae3b0b580c06 100644
--- a/libcxx/include/__ranges/iota_view.h
+++ b/libcxx/include/__ranges/iota_view.h
@@ -45,7 +45,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
namespace ranges {
template<class _Int>
struct __get_wider_signed {
- static auto __call() {
+ consteval static auto __call() {
if constexpr (sizeof(_Int) < sizeof(short)) return type_identity<short>{};
else if constexpr (sizeof(_Int) < sizeof(int)) return type_identity<int>{};
else if constexpr (sizeof(_Int) < sizeof(long)) return type_identity<long>{};
More information about the libcxx-commits
mailing list