STL vector iterator in dictionary

Hi the attached test.C code does not seem to behave nicely in
CINT. Did I do something wrong?

To compile and test libVTest.so
tar -jxvf vtest.tar.bz2
mkdir vtest-b
cd vtest-b
…/vtest/autogen.sh
make
root -b -q …/vtest/test.C

Basically it does not seem like the iterator is behaving correctly as
you will see if you un-comment the “DOES NOT WORK” section. The normal
at() function seems to work just fine.I would appreciate any help.

–

Loren A. Linden Levy
Department of Physics
390 UCB
University of Colorado
Boulder, CO 80309-0390
Tel: 303-735-6146 (CU) / +049 040 8998 4789 (DESY)
Fax: 303-492-3352 (CU) / +049 040 8998 4034 (DESY)
Cell: 303-332-2768 (U.S.) / +049 (0)151 5496 1831 (Germany)
Email: Loren.Lindenlevy@colorado.edu
url: up.colorado.edu/~lindenle



This email has been cryptographically signed.
Search for “lindenle” at pgp.mit.edu
to obtain my public key which can be used
to verify the authenticity of this message.



Hi,

I do not see your attachment. Could please repost it?

Thanks,
Philippe

Sure
vtest.tar.gz (3.13 KB)

Hi,

While running your example I saw the error message:Error: operator!= not defined for vector<VTest,allocator<VTest> >::iterator /.../vtest/vtest-b/./../test.C:18:.

This is fixed by adding the line:#pragma link C++ function operator!=(vector<VTest>::iterator,vector<VTest>::iterator);
to you LinkDef file.

Cheers,
Philippe.