Dear rooters,
With the attached files I’m having the following compilation warnings
[size=85]Dict.cc:258:10: warning: ‘const’ qualifier on reference type ‘vector<int, allocator >::reference’ (aka ‘int &’) has no effect [-Wignored-qualifiers]
const vector<int,allocator >::reference obj = ((vector<int,allocator >) G__getstructoffset())->at((vector<int,allocator >::size_type) G__int(libp->p…
^~~~~~
Dict.cc:368:10: warning: ‘const’ qualifier on reference type ‘vector<int, allocator >::reference’ (aka ‘int &’) has no effect [-Wignored-qualifiers]
const vector<int,allocator >::reference obj = ((vector<int,allocator >) G__getstructoffset())->operator[]((vector<int,allocator >::size_type) G__int…
^~~~~~
2 warnings generated.[/size]
and run time error;
[size=85]Error in TTree::SetBranchAddress: Unable to determine the type given for the address for “mc_pdgId”. This is probably due to a missing dictionary, the original data class for this branch is vector.
*** Break *** segmentation violation
Generating stack trace…
0x0000000000000001 in [/size]
This is sort of strange because I do exactly the same, in order to read vector variables and having no error with them. Only with int vectors.
Any help would be appreciated.
Best,
Bora
Makefile.txt (591 Bytes)
test.cc (1.19 KB)
LinkDef.h (554 Bytes)