Skip to content

Commit

Permalink
Remove redundant const from static constexpr const.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Marenz authored and miscco committed Aug 23, 2023
1 parent 8b7043c commit 8197f8e
Show file tree
Hide file tree
Showing 6 changed files with 442 additions and 442 deletions.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/detail/libcxx/include/__string
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ char_traits<wchar_t>::compare(const char_type* __s1, const char_type* __s2, size

template <class _Traits>
_LIBCUDACXX_INLINE_VISIBILITY
constexpr inline size_t __char_traits_length_checked(const typename _Traits::char_type* __s) noexcept {
inline constexpr size_t __char_traits_length_checked(const typename _Traits::char_type* __s) noexcept {
#if _LIBCUDACXX_DEBUG_LEVEL >= 1
return __s ? _Traits::length(__s) : (_CUDA_VSTD::__libcpp_debug_function(_CUDA_VSTD::__libcpp_debug_info(__FILE__, __LINE__, "p == nullptr", "null pointer pass to non-null argument of char_traits<...>::length")), 0);
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ _LIBCUDACXX_BEGIN_NAMESPACE_STD
#if defined(_LIBCUDACXX_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR)
template <class, class>
struct __non_trivially_copyable_base {
constexpr _LIBCUDACXX_INLINE_VISIBILITY
_LIBCUDACXX_INLINE_VISIBILITY constexpr
__non_trivially_copyable_base() noexcept {}
_LIBCUDACXX_CONSTEXPR_AFTER_CXX11 _LIBCUDACXX_INLINE_VISIBILITY
__non_trivially_copyable_base(__non_trivially_copyable_base const&) noexcept {}
Expand Down
8 changes: 4 additions & 4 deletions libcudacxx/include/cuda/std/detail/libcxx/include/algorithm
Original file line number Diff line number Diff line change
Expand Up @@ -2892,12 +2892,12 @@ private:
static const _Working_result_type _Rp = _Engine::_Max - _Engine::_Min
+ _Working_result_type(1);
#else
static constexpr const _Working_result_type _Rp = _Engine::max() - _Engine::min()
static constexpr _Working_result_type _Rp = _Engine::max() - _Engine::min()
+ _Working_result_type(1);
#endif
static constexpr const size_t __m = __log2<_Working_result_type, _Rp>::value;
static constexpr const size_t _WDt = numeric_limits<_Working_result_type>::digits;
static constexpr const size_t _EDt = numeric_limits<_Engine_result_type>::digits;
static constexpr size_t __m = __log2<_Working_result_type, _Rp>::value;
static constexpr size_t _WDt = numeric_limits<_Working_result_type>::digits;
static constexpr size_t _EDt = numeric_limits<_Engine_result_type>::digits;

public:
// constructors and seeding functions
Expand Down
Loading

0 comments on commit 8197f8e

Please sign in to comment.