Skip to content

Commit

Permalink
Unblock RWC by extending the static call operator workaround (#5312)
Browse files Browse the repository at this point in the history
Co-authored-by: David Justo <dajusto@microsoft.com>
  • Loading branch information
StephanTLavavej and davidmrdavid authored Feb 25, 2025
1 parent 25cfafb commit 3b2a52e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stl/inc/yvals_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,9 @@ compiler option, or define _ALLOW_RTCc_IN_STL to suppress this error.
#define _STL_INTERNAL_STATIC_ASSERT(...)
#endif // ^^^ !defined(_ENABLE_STL_INTERNAL_CHECK) ^^^

#ifdef __CUDACC__ // TRANSITION, CUDA 12.4 doesn't have downlevel support for static call operators
#if defined(__CUDACC__) || (defined(__clang__) && __clang_major__ < 16)
// TRANSITION, CUDA 12.4 doesn't have downlevel support for static call operators.
// TRANSITION, VSO-2397560, temporary workaround for Real World Code relying on ancient Clang versions.
#define _STATIC_CALL_OPERATOR
#define _CONST_CALL_OPERATOR const
#define _STATIC_LAMBDA
Expand Down

0 comments on commit 3b2a52e

Please sign in to comment.