Roel,
can you, just as a workaround for now so that you can continue, try the following. Use this class:
>>>> gbl.std.pair(gbl.std.map('string', 'double').iterator, 'bool')
> <class 'PyCintex.pair<map<string,double,less<string>,allocator<pair<const string,double> > >::iterator,bool>'>
and use it as a placeholder for the return type needed:
import ROOT
ROOT.gROOT.GetListOfClasses().Add( ROOT.TClass('pair<map<string,double>::iterator,bool>') )
setattr(ROOT.ROOT, 'pair<map<string,double>::iterator,bool>', ROOT.std.pair(ROOT.std.map('string', 'double').iterator, 'bool') )
(I picked up the name of the new TClass and attribute from you earlier error message. Just make sure the two match exactly.)
The ticket being that classes are first checked for existence, before the name is disected to find all templates and such, and when it class is first asked for, it is first looked up in the global namespace.
Best regards,
Wim
-- WLavrijsen_at_lbl.gov -- +1 (510) 486 6411 -- www.lavrijsen.netReceived on Tue Jan 31 2012 - 23:03:30 CET
This archive was generated by hypermail 2.2.0 : Wed Feb 01 2012 - 17:50:01 CET