Skip to content

Commit

Permalink
C++11 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 24, 2025
1 parent bedaa75 commit de243f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/limits
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ _LIBCUDACXX_HIDE_FROM_ABI constexpr __numeric_limits_type __make_numeric_limits_
{
return __numeric_limits_type::__other;
}
_CCCL_UNREACHABLE();
#else // ^^^ !_CCCL_NO_IF_CONSTEXPR ^^^ // vvv _CCCL_NO_IF_CONSTEXPR vvv
return _CCCL_TRAIT(is_same, _Tp, bool)
? __numeric_limits_type::__bool
Expand All @@ -86,7 +87,6 @@ _LIBCUDACXX_HIDE_FROM_ABI constexpr __numeric_limits_type __make_numeric_limits_
? __numeric_limits_type::__floating_point
: __numeric_limits_type::__other));
#endif // _CCCL_NO_IF_CONSTEXPR
_CCCL_UNREACHABLE();
}

template <class _Tp, __numeric_limits_type = __make_numeric_limits_type<_Tp>()>
Expand Down

0 comments on commit de243f9

Please sign in to comment.