Here is my small macro that gives a terrible error when I try to run it:
testing.C
[code]#include
void testing(vector theFloats) {
cout << “hello” << endl;
}
void testing() {
vector filterEffeciency;
filterEffeciency.push_back( 1.0 );
filterEffeciency.push_back( 1.0 );
testing(filterEffeciency);
}[/code]
And this is when I try to run it from the command line:
$ root -l -b -q "testing.C()"
TDR Style initialized
root [0]
Processing testing.C()…
Error: Can’t call vector<float,allocator >::vector<float,allocator >((class vector)137732928) in current scope testing.C:3:
Possible candidates are…
(in vector<float,allocator >)
/afs/hep.wisc.edu/osg/app_ro/cmssoft/cms/slc4_ia32_gcc345/lcg/root/5.22.00a-cms18/cint/cint/stl/vector.dll -1:-1 0 public: vector<float,allocator > vector<float,allocator >::vector<float,allocator >(void);
/afs/hep.wisc.edu/osg/app_ro/cmssoft/cms/slc4_ia32_gcc345/lcg/root/5.22.00a-cms18/cint/cint/stl/vector.dll -1:-1 0 public: vector<float,allocator > vector<float,allocator >::vector<float,allocator >(vector<float,allocator >::size_type n,const float& value=float());
/afs/hep.wisc.edu/osg/app_ro/cmssoft/cms/slc4_ia32_gcc345/lcg/root/5.22.00a-cms18/cint/cint/stl/vector.dll -1:-1 0 public: vector<float,allocator > vector<float,allocator >::vector<float,allocator >(const vector<float,allocator >& x);
/afs/hep.wisc.edu/osg/app_ro/cmssoft/cms/slc4_ia32_gcc345/lcg/root/5.22.00a-cms18/cint/cint/stl/vector.dll -1:-1 0 public: vector<float,allocator > vector<float,allocator >::vector<float,allocator >(vector<float,allocator >::const_iterator first,vector<float,allocator >::const_iterator last);
*** Interpreter error recovered ***
Any ideas what is going wrong?