From f56bb6df619f20c3dbbc1277d615b65031d0d1ca Mon Sep 17 00:00:00 2001
From: Philippe Canal <pcanal@fnal.gov>
Date: Thu, 12 Dec 2013 20:53:36 -0600
Subject: [PATCH] Skip adding the default template parameter for _all_ std
 templates.

And also for all class templates in gnu_cxx and class templates
starting with an underscore.
---
 core/metautils/src/TMetaUtils.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/metautils/src/TMetaUtils.cxx b/core/metautils/src/TMetaUtils.cxx
index e26c0e1033b..ce8e8c67299 100644
--- a/core/metautils/src/TMetaUtils.cxx
+++ b/core/metautils/src/TMetaUtils.cxx
@@ -2533,7 +2533,7 @@ clang::QualType ROOT::TMetaUtils::AddDefaultParameters(clang::QualType instanceT
 
    if (TST && TSTdecl) {
 
-      bool wantDefault = !TClassEdit::IsStdClass(TSTdecl->getName().str().c_str()) && 0 == TClassEdit::STLKind(TSTdecl->getName().str().c_str());
+      bool wantDefault = !cling::utils::Analyze::IsStdOrCompilerDetails(*TSTdecl);
 
       clang::Sema& S = interpreter.getCI()->getSema();
       clang::TemplateDecl *Template = TSTdecl->getSpecializedTemplate()->getMostRecentDecl();
-- 
GitLab