Problem 256

Summary: wrong usage of vector<> ?
Product: Examples/Extended Reporter: Andreas.Pfeiffer
Component: analysis/A0Assignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P2    
Version: 3.0   
Hardware: PC   
OS: Linux   

Description Andreas.Pfeiffer 2001-05-10 11:03:04 CEST
reported on behalf of: korir@inkosi.src.wits.ac.za

[korir@intulo AnaEx01]$ make
Making dependency for file src/AnaEx01SteppingVerbose.cc ...
Compiling AnaEx01SteppingVerbose.cc ...
src/AnaEx01SteppingVerbose.cc: In method `void
AnaEx01SteppingVerbose::StepInfo()':
src/AnaEx01SteppingVerbose.cc:98: no matching function for call to
`vector<G4Track *,__default_alloc_template<true,0>
>::entries ()'
src/AnaEx01SteppingVerbose.cc:102: no matching function for call to
`vector<G4Track *,__default_alloc_template<true,0>
>::entries ()'
src/AnaEx01SteppingVerbose.cc:103: no matching function for call to
`vector<G4Track *,__default_alloc_template<true,0>
>::entries ()'
make: *** [/home/korir/tmp/Linux-g++/AnaEx01/AnaEx01SteppingVerbose.o] Error
1
Comment 1 Gabriele Cosmo 2001-05-15 02:28:59 CEST
I guess (I can only guess from the information reported here...) the
user is making wrong usage of STL vector<>.
The function entries() does not exist.
size() should be used instead.