Skip to content

convert ‘bool’ to ‘clang::TemplateName::Qualified’not allowed in latest GCC #458

@nickhuang99

Description

@nickhuang99

When compiling with latest GCC-11.2.0 with -std=c++20, there is error like convert ‘bool’ to ‘clang::TemplateName::Qualified’ error
It is better just leave it for default.


diff --git a/InsightsHelpers.cpp b/InsightsHelpers.cpp
index d08157f..da68e0e 100644
--- a/InsightsHelpers.cpp
+++ b/InsightsHelpers.cpp
@@ -1378,7 +1378,8 @@ void StringStream::Print(const TemplateArgument& arg)
 
 void StringStream::Print(const TemplateSpecializationType& arg)
 {
-    arg.getTemplateName().print(*this, CppInsightsPrintingPolicy{}, true);
+    //arg.getTemplateName().print(*this, CppInsightsPrintingPolicy{}, true);
+       arg.getTemplateName().print(*this, CppInsightsPrintingPolicy{});
 }
 //-----------------------------------------------------------------------------
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions