diff --git a/stl/inc/compare b/stl/inc/compare index e35d1a3a4d0..8cdd4008911 100644 --- a/stl/inc/compare +++ b/stl/inc/compare @@ -28,13 +28,14 @@ _STD_BEGIN void _Literal_zero_is_expected(); struct _Literal_zero { - template , int> = 0> - consteval _Literal_zero(_Ty _Zero) noexcept { + consteval _Literal_zero(_Literal_zero* _Zero) noexcept { // Can't use _STL_VERIFY because this is a core header if (_Zero != 0) { _Literal_zero_is_expected(); } } + template , int> = 0> + _Literal_zero(_Ty) = delete; }; using _Compare_t = signed char;