Hi Roger,
Please have a look at here:
http://root.cern.ch/root/roottalk/roottalk08/0285.html
Note that there is supposed to be some autodict property since 5.22, but I personally prefer the above method.
Cheers,
e.
On 20 Apr 2010, at 15:16, Roger Mason wrote:
> Hello,
>
> I am trying to use the STL set container in a script. Here is a minimal
> example:
>
> #include <set>
>
> #include "TRandom1.h"
>
> void XfromY(Int_t x, Int_t y) {
>
> TRandom1 R;
> set<Int_t> s;
>
> }
>
> I load and run the script as follows:
>
> root [0] .L XfromY.C
> root [1] XfromY(10,14)
> Error: Symbol set<Int_t>s is not defined in current scope XfromY.C:8:
> *** Interpreter error recovered ***
>
> Am I doing something wrong or is CINT incapable of using the STL?
>
> Thanks,
> Roger
>
--- V. Erkcan Ozcan, Ph.D. Research Fellow ATLAS Experiment University College London CERN, 32-2-A14 Dept. of Physics and Astronomy Meyrin, Genève, SwitzerlandReceived on Tue Apr 20 2010 - 15:19:08 CEST
This archive was generated by hypermail 2.2.0 : Tue Apr 20 2010 - 17:50:02 CEST