c++ - Ambiguous pointer; <SiHCollection> is ambiguous -
below i've posted code meant store hits collections in hce (hit collection of events). code compiles on running program, following error printed terminal 7 times: < sihcollection> ambiguous. i have feeling because using namespace std although don't know how amend code. thoughts? #include "sisd.h" #include "sihit.h" #include "g4hcofthisevent.hh" #include "g4step.hh" #include "g4threevector.hh" #include "g4sdmanager.hh" #include "g4ios.hh" #include "g4unitstable.hh" #include <fstream> #include <iostream> #include <sstream> using namespace std; extern ofstream outfile; sisd::sisd(g4string name) :g4vsensitivedetector(name) { collectionname.insert("sihcollection"); ...