From e8ef6d559dfc4358e4835cb3931ee73fc9979f6b Mon Sep 17 00:00:00 2001 From: Frank Gaede <frank.gaede@desy.de> Date: Tue, 13 Aug 2019 11:57:43 +0200 Subject: [PATCH] fix namespace lookup for <arg> --- DDCore/src/plugins/PluginInvoker.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DDCore/src/plugins/PluginInvoker.cpp b/DDCore/src/plugins/PluginInvoker.cpp index 55de9ff08..58564c341 100644 --- a/DDCore/src/plugins/PluginInvoker.cpp +++ b/DDCore/src/plugins/PluginInvoker.cpp @@ -35,6 +35,7 @@ namespace dd4hep { class arg; } + // Converters re-used from compact: template <> void Converter<Readout>::operator()(xml_h element) const; template <> void Converter<LimitSet>::operator()(xml_h element) const; @@ -44,7 +45,7 @@ namespace dd4hep { template <> void Converter<include_file>::operator()(xml_h element) const; template <> void Converter<plugins>::operator()(xml_h element) const; template <> void Converter<plugin>::operator()(xml_h element) const; - template <> void Converter<arg>::operator()(xml_h element) const; + template <> void Converter<dd4hep::arg>::operator()(xml_h element) const; } using namespace std; using namespace dd4hep; @@ -56,7 +57,7 @@ using namespace dd4hep::detail; * @version 1.0 * @date 01/04/2014 */ -template <> void Converter<arg>::operator()(xml_h e) const { +template <> void Converter<dd4hep::arg>::operator()(xml_h e) const { xml_comp_t c(e); string val = c.valueStr(); vector<string>* args = (vector<string>*)param; @@ -76,7 +77,7 @@ template <> void Converter<plugin>::operator()(xml_h e) const { vector<const char*> cargs; //args.emplace_back("plugin:"+nam); - xml_coll_t(e,"arg").for_each(Converter<arg>(description,&args)); + xml_coll_t(e,"arg").for_each(Converter<dd4hep::arg>(description,&args)); for(vector<string>::const_iterator i=args.begin(); i!=args.end();++i) cargs.emplace_back((*i).c_str()); printout(INFO,"ConverterPlugin","+++ Now executing plugin:%s [%d args]",nam.c_str(),int(cargs.size())); -- GitLab