Rework TemplateString for standard compliance

Creating an std::integer_sequence from a user-defined string literal is
a non-standard gcc extension. This alternative implementation should
conform to C++20.
This commit is contained in:
Willi Schinmeyer
2024-06-10 10:51:07 +02:00
parent 417e220780
commit 2af41ee5ac
5 changed files with 23 additions and 14 deletions
+2 -2
View File
@@ -496,10 +496,10 @@ static void SetBrushContents( brush_t& b ){
else if ( s->compileFlags & C_FOG ){
b.contentShader = s->shaderInfo;
}
else if ( b.contentShader->contentFlags & GetRequiredSurfaceParm( "playerclip"_Tstring ).contentFlags ){
else if ( b.contentShader->contentFlags & GetRequiredSurfaceParm< "playerclip"_Tstring >().contentFlags ){
continue;
}
else if ( s->contentFlags & GetRequiredSurfaceParm( "playerclip"_Tstring ).contentFlags ){
else if ( s->contentFlags & GetRequiredSurfaceParm< "playerclip"_Tstring >().contentFlags ){
b.contentShader = s->shaderInfo;
}
else if (!( b.contentShader->compileFlags & C_SOLID )){