You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1>K:\hl2sdk-css\public\tier1\utlsymbol.h(108,14): error C2666: 'CUtlSymbol::operator ==': overloaded functions have similar conversions
1>(compiling source file 'hgsm.cpp')
1> K:\hl2sdk-css\public\tier1\utlsymbol.h(48,7):
1> could be 'bool CUtlSymbol::operator ==(const CUtlSymbol &) const' [rewritten expression '!(x == y)']
1> K:\hl2sdk-css\public\tier1\utlsymbol.h(108,14):
1> or'built-in C++ operator!=(UtlSymId_t, UtlSymId_t)'1> K:\hl2sdk-css\public\tier1\utlsymbol.h(108,14):
1> while trying to match the argument list '(CUtlSymbol, UtlSymId_t)'
Line 48 needs to be commented out, otherwise it comes in conflict with:
Can you show your compiler arguments? This error is known to occur with opting into C++23, which Valve's SDK does not currently support.
I'm using c++latest and c17 for Windows builds and AM's recommended versions for Linux builds. So it means that the fix is commenting bool operator==( CUtlSymbol const& src ) const { return m_Id == src.m_Id; } on >=c++23.
hl2sdk/public/tier1/utlsymbol.h
Line 48 in 94b660e
Line 48 needs to be commented out, otherwise it comes in conflict with:
The text was updated successfully, but these errors were encountered: