Problem 256 - wrong usage of vector<> ?
Summary: wrong usage of vector<> ?
Status: RESOLVED INVALID
Alias: None
Product: Examples/Extended
Classification: Unclassified
Component: analysis/A0 (show other problems)
Version: 3.0
Hardware: PC Linux
: P2 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2001-05-10 11:03 CEST by Andreas.Pfeiffer
Modified: 2007-04-08 18:20 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.